나는 내 아이폰 앱에서 비디오를 스트리밍하고 있는데, 시뮬레이터에서 비디오를 재생할 수 있으며 사진 갤러리처럼 미리보기 이미지로 표시 할 수 있다는 것을 알고 싶다. 그리고 어떤 비디오를 재생할 수있는 좋은 연습입니다 ..stream video on simulator
0
A
답변
0
안녕하세요 shivangi, 여기
You will try this its help you.
http://developer.apple.com/library/ios/#documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/Reference/Reference.html
1
는
- (void)embedYouTube:(NSString*)url frame:(CGRect)frame {
NSString* embedHTML = @"\
<html><head>\
<style type=\"text/css\">\
body {\
background-color: transparent;\
color: white;\
}\
</style>\
</head><body style=\"margin:0\">\
<embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" \
width=\"%0.0f\" height=\"%0.0f\"></embed>\
</body></html>";
NSString* html = [NSString stringWithFormat:embedHTML, url, frame.size.width, frame.size.height];
if(videoView == nil) {
videoView = [[UIWebView alloc] initWithFrame:frame];
[self.view addSubview:videoView];
}
[videoView loadHTMLString:html baseURL:nil];
}
1
예 것이 가능 유튜브 비디오 스트림에 대한 코드입니다.
mpmovieplayercontroller를 사용해야합니다.
이 링크는 도움이됩니다.
관련 문제
- 1. wifi on iphone simulator
- 2. Wordpress - Stream Video Player - 대용량 flv 파일
- 3. 반환 값 NSDictionary On Simulator, iPhone의 경우
- 4. XNA Windows Phone Simulator on 'Mac-Windows'대 일반 Windows
- 5. Blackberry Simulator 문제
- 6. iPhone Simulator Apps Crash
- 7. "Stream Attachments"를 Facebook의 "Stream Stories"에 첨부하는 방법은 무엇입니까?
- 8. Simulcast a .NET Stream
- 9. OpenFlow :: Howto Stream Images
- 10. System.Drawing.Image to stream C#
- 11. Red5 stream flv 파일
- 12. Caching stream in C#
- 13. Zip Stream in PHP
- 14. FB.ui/Publish Stream Issue
- 15. Stream 변수의 지속성 문제
- 16. Facebook Android Wall Stream
- 17. iPad 용 iPhone-Simulator Cropper?
- 18. Visio Process Simulator 란 무엇입니까?
- 19. iPhone4 Simulator in XCode 4.0.2
- 20. Blackberry Simulator FileSystem : 여기가 어디입니까?
- 21. BlackBerry Simulator & BIS 푸시 서비스
- 22. iPhone Simulator slow and jerky
- 23. html5 video tag + flash video : 우선 순위를 변경하는 방법
- 24. android video thumbnails
- 25. youtube video link
- 26. windows app live video
- 27. Youtube Video 추가하는 방법
- 28. autoplay youtube video
- 29. Html5 video 명령
- 30. JWPlayer playing video