UIWebView Movie Player getting dismissed iOS 6 bug

前端 未结 2 1445
花落未央
花落未央 2020-12-29 16:47

When I try to initiate a video to play (via YouTube) in a UIWebView, the video opens, then the debugger says:

[MPAVController] Autoplay: Enablin         


        
2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 17:41

    I just had this very same issue in one of our apps. Turns out we were setting the UIWebView's HTML to an empty string in -(void)viewWillDisappear. Apparently this method is now being called in iOS 6 when displaying a fullscreen video from an UIWebView, so that's probably where your issue comes from.

提交回复
热议问题