有时候在webview里面并不希望视频能够全屏播放,于是最好的办法是隐藏全屏播放的按钮
- (void)webViewDidFinishLoad:(UIWebView *)webView{
if (webView&&[webView isKindOfClass:[UIWebView class]]) {
[webView stringByEvaluatingJavaScriptFromString:
@"document.getElementsByClassName('vjs-fullscreen-control')[0].style.display = \"none\""
];
}
}
网友评论