iOS WKWebView禁止自动全屏

字数 3阅读 4
WKWebViewConfiguration *configuration = [[WKWebViewConfigurationalloc]init];
configuration.allowsInlineMediaPlayback=true;
self.webView=[[WKWebViewalloc]initWithFrame:CGRectMake(0,20,W,H-20)configuration: configuration];

如果UIWebView

_webView.allowsInlineMediaPlayback=YES;

推荐阅读更多精彩内容