videoembedded在与iOS6模拟器或设备UIWebview不工作的链接上

iOS 6的webview有一个呈现video的问题? 🙁

我的代码是一个简单的调用webview的loadRequest方法:

self.webview.scalesPageToFit = YES; [self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=3WEpUAQ7fa8"]]]; 

cosole说:

 [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"]]]; 

试试这种方式来embedded,