iOS:如何在UIWebView HTML5电影播放器中禁用或处理下一个和上一个按钮

iOS:如何在UIWebView HTML5电影播放器中禁用或处理下一个和上一个按钮,ios,html,cordova,uiwebview,Ios,Html,Cordova,Uiwebview,在我的iOS Phonegap应用程序中,我们使用cordova插件在UIWebView中播放youtube视频。下面是我用来在UIWebView中嵌入youtube视频的代码。我们使用iFrame标签来嵌入视频 customWebView= [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 512, 374)]; customWebView.delegate=self; customWebView.scrollView.bounces=NO; [

在我的iOS Phonegap应用程序中,我们使用cordova插件在UIWebView中播放youtube视频。下面是我用来在UIWebView中嵌入youtube视频的代码。我们使用iFrame标签来嵌入视频

customWebView= [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 512, 374)];
customWebView.delegate=self;
customWebView.scrollView.bounces=NO;
[customWebView setOpaque:NO];
customWebView.backgroundColor = [UIColor clearColor];
[webViewBackground addSubview:customWebView];


NSString* embedHTML = @"<html><head>\
<style type=\"text/css\">\body {\background-color: #000000;\
color: white;}</style></head><body style=\"margin:0\">\
<iframe width=\"512\" height=\"374\" src=\"%@\" frameborder=\"0\" allowfullscreen></iframe></body></html>";

NSString* html = [NSString stringWithFormat:embedHTML, urlVideo];
[customWebView loadHTMLString:html baseURL:nil];
customWebView=[[UIWebView alloc]initWithFrame:CGRectMake(0,0,512,374)];
customWebView.delegate=self;
customWebView.scrollView.bounces=否;
[customWebView设置不透明:否];
customWebView.backgroundColor=[UIColor clearColor];
[webViewBackground addSubview:customWebView];
NSString*embedHTML=@”\
\正文{\背景色:#000000\
颜色:白色;}\
";
NSString*html=[NSString stringWithFormat:embedHTML,urlVideo];
[customWebView loadHTMLString:html baseURL:nil];
视频播放得非常好。在正常模式和全屏模式下。但在全屏模式下,用户可以看到“上一步”和“下一步”按钮。点击“下一步”和“上一步”按钮几次,视频就结束了,我只能在webview中看到一个黑屏

下面是截图

我们是否可以禁用iFrame视频播放器中的“下一个”和“上一个”按钮?或者我们还有其他方法来处理这个问题吗