MonoTouch:UIWeb无法播放YouTube嵌入式视频

时间:2012-11-09 02:18:28

标签: ios uiwebview xamarin.ios

在我们的应用程序中,我们在UINavigation控制器中托管一个UIWebView控件并让它获取网页。这些页面嵌入了YouTube视频。

在iPad上它工作正常,在iPhone上,视频弹出然后轻弹并死于返回应用程序,应用程序可以继续正常,因此不是应用程序崩溃。

这是我从控制台获得的 iPhone 错误(不是非常有用):

 Nov  8 18:04:37 backboardd[26] <Warning>: Application 'UIKitApplication:com.apple.mobilesafari[0xf377]' exited abnormally with signal 9: Killed: 9
 Nov  8 18:04:37 ReportCrash[7703] <Notice>: 
          Not saving suspended-only Jetsam log because already dumped today.

模拟器中,我得到了这个:

[MPAVController] Autoplay: Enabling autoplay
[MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 0, on player: 1)
setting movie path: http://o-o---preferred---sn-nx57yne7---v23---lscache8.c.youtube.com/videoplayback?upn=2-
[MPAVController] Autoplay: Enabling autoplay
[MPCloudAssetDownloadController] Prioritization requested for media item ID: 0
[MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 0, on player: 1)
setting movie path: http://o-o---preferred---sn-nx57yne7---v23---lscache8.c.youtube.com/videoplayback?upn=2-Jx_RQQ4Hs&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&fexp=90331
[MPAVController] Autoplay: _streamLikelyToKeepUp: 0 -> 1
[MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 0, on player: 1)
[MPAVController] Autoplay: Enabling autoplay
[MPAVController] Autoplay: Enabling autoplay
[MPAVController] Autoplay: Disabling autoplay for pause
[MPAVController] Autoplay: Disabling autoplay

0 个答案:

没有答案