Iphone 嵌入在链接上的视频不适用于带iOS6模拟器或设备的UIWebview
iOS 6 webview是否存在显示视频的问题( 我的代码是对webview的loadRequest方法的简单调用:Iphone 嵌入在链接上的视频不适用于带iOS6模拟器或设备的UIWebview,iphone,ios,video,uiwebview,ios6,Iphone,Ios,Video,Uiwebview,Ios6,iOS 6 webview是否存在显示视频的问题( 我的代码是对webview的loadRequest方法的简单调用: self.webview.scalesPageToFit = YES; [self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=3WEpUAQ7fa8"]]]; 科索说: [MPAVController] Auto
self.webview.scalesPageToFit = YES;
[self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=3WEpUAQ7fa8"]]];
科索说:
[MPAVController] Autoplay: Enabling autoplay
[MPAVController] Autoplay: Disabling autoplay for pause
[MPAVController] Autoplay: Disabling autoplay
[MPAVController] Autoplay: Ending background task assertion (8) for playback stall
[MPAVController] Autoplay: _streamLikelyToKeepUp: 0 -> 1
[MPAVController] Autoplay: Skipping autoplay, disabled (for current item: 1, on player: 1)
我提到了,但没有用
请给出答案。您好,因为您不能使用MPMoviePlayerController,所以您必须使用Webview,而不是使用
self.webview.scalesPageToFit = YES;
[self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=3WEpUAQ7fa8"]]];
webview,如前所述。我必须只使用webview,因为我将使用带有嵌入式视频的网页。@Nikita看一看@Dpk检查系统首选项中输入的“声音”设置是否设置为内部麦克风以外的其他设置。它不是声音,即使视频未播放,我也能听到视频的声音(全屏崩溃,但正在播放音频)