我是在我的iPhone應用程序中流式傳輸視頻,我想知道視頻可以在模擬器上播放,也可以顯示爲照片庫中的縮略圖。 ,什麼是良好的執業播放視頻..模擬器上的流視頻
Q
模擬器上的流視頻
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
這裏是YouTube的視頻流的碼
- (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. iphone模擬器和視頻
- 2. Android視頻模擬器
- 3. MPMoviePlayerViewController只在模擬器上播放音頻沒有視頻?
- 4. 使用黑莓模擬器流媒體視頻
- 5. 將視頻添加到iPad模擬器
- 6. 模擬iPhone視頻播放器行爲
- 7. 模擬器播放視頻嗎?
- 8. 視頻在Android模擬器中顯示
- 9. 視頻在模擬器中捕獲?
- 10. html5視頻不玩ipad模擬器?
- 11. 安卓視頻錄製與模擬器
- 12. 模擬器上的音頻庫
- 13. Android模擬器上的音頻輸入
- 14. android:設備或模擬器上的視頻捕獲
- 15. 在iOS模擬器上測試時的黑屏視頻
- 16. UIImagePickerController停留在iOS10模擬器上壓縮視頻後選擇視頻
- 17. Android上的流視頻
- 18. Blackberry上的視頻流
- 19. Android上的UDP視頻流
- 20. 如何在iPhone模擬器上推視頻?
- 21. Windows平臺上的音頻/視頻流
- 22. 視頻上傳和流
- 23. 流視頻到服務器
- 24. Java視頻流視頻
- 25. 比視頻流短的音頻流
- 26. Android虛擬設備上的視頻?
- 27. Android的視頻流
- 28. iphone視頻流
- 29. C#視頻流
- 30. 流視頻php