title: xamarin WKWebView, ipad does not support youtube full screen
body: <p>I implemented a webview using the WkWebview renderer.</p>
  <p>Fullscreen works fine on ipone. But it doesn't work on iPad.</p>
  <p>An image like the one below will appear.</p>
  <p><a href="https://i.stack.imgur.com/vSOvB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vSOvB.png" alt="enter image description here" /></a></p>
  <p>I saw an article saying to do <code>webViewConfiguration.allowsInlineMediaPlayback = true</code> and applied it but it didn't work. What's the problem?</p>
  <p>Here is my code.</p>
  <pre><code>   public class MyWebViewRenderer : WkWebViewRenderer, IWKScriptMessageHandler, IWKNavigationDelegate
     {
  
      WKUserContentController userController;
  
          public MyWebViewRenderer() : this(new WKWebViewConfiguration())
          {
              
          }
  
          public MyWebViewRenderer(WKWebViewConfiguration config) : base(config)
          {
  
              userController = config.UserContentController;
              var script = new WKUserScript(new NSString(_JavascriptFunction_CSharpOpenWeb), WKUserScriptInjectionTime.AtDocumentEnd, false);
  
              userController.AddUserScript(script);
              
              userController.AddScriptMessageHandler(this, &quot;invokeAction_CSharpOpenWeb&quot;);
          }
  
  protected async override void OnElementChanged(VisualElementChangedEventArgs e)
          {
              base.OnElementChanged(e);
  
            
  
              if (e.OldElement != null)
              {
                  userController.RemoveAllUserScripts();
                  userController.RemoveScriptMessageHandler(&quot;invokeAction_CSharpOpenWeb&quot;);
                  MyWebView myWebView = e.OldElement as MyWebView;
                  myWebView.Cleanup();
              }
  
              if (e.NewElement != null)
              {
                  this.NavigationDelegate = new MyNavigationDelegate(this);
                 
                  var webView = (MyWebView)Element;
                   
                  webView.UriChanged += async (s1, e1) =&gt;
                  {
                      
                          NSUrl nsurl = new NSUrl(webView.Uri);
                          Configuration.AllowsInlineMediaPlayback = true;
                          NSMutableUrlRequest request = new NSMutableUrlRequest(nsurl);
                         
                          await SetCookies();
                        
                          LoadRequest(request);
                  };
  
                  if (!string.IsNullOrEmpty(webView.Uri))
                  {
                     
                          NSUrl nsurl = new NSUrl(webView.Uri);
                          NSMutableUrlRequest request = new NSMutableUrlRequest(nsurl);
                     
  
                          await SetCookies();
  
                          LoadRequest(request);
                  }
              }
          }
  }
  </code></pre>
  <p>Can you tell me what I did wrong?</p>