title: iOS: How to disable or handle next and previous buttons in UIWebView HTML5 movie player
body: <p>In my iOS Phonegap application, we are playing youtube video inside a UIWebView using a cordova plugin. Below is the code I am using to embed the youtube video in UIWebView. We are using iFrame tag to embed the video.</p>
  
  <pre><code>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 = @"&lt;html&gt;&lt;head&gt;\
  &lt;style type=\"text/css\"&gt;\body {\background-color: #000000;\
  color: white;}&lt;/style&gt;&lt;/head&gt;&lt;body style=\"margin:0\"&gt;\
  &lt;iframe width=\"512\" height=\"374\" src=\"%@\" frameborder=\"0\" allowfullscreen&gt;&lt;/iframe&gt;&lt;/body&gt;&lt;/html&gt;";
  
  NSString* html = [NSString stringWithFormat:embedHTML, urlVideo];
  [customWebView loadHTMLString:html baseURL:nil];
  </code></pre>
  
  <p>The video is playing perfectly fine. Both in normal mode and full screen mode. But in full screen mode, user can see the previous and next buttons. On click of next and previous button few times, the video is getting over and I can see only a black screen in webview. </p>
  
  <p>Below are the screenshots.</p>
  
  <p><img src="https://i.stack.imgur.com/MJR2C.jpg" alt="full screen mode"></p>
  
  <p><img src="https://i.stack.imgur.com/4DkEh.png" alt="after pressing the next or previous button"></p>
  
  <p>Is there anyway we can disable the next and previous buttons in a iFrame video player? Or Is there any other way in which we can handle this?</p>