I have been looking for a solution to this for weeks while keep putting it on my backlog.
I have a simple webview as following
WebView webView = FindViewById<WebView>(Resource.Id.webviewVideo);
webView.ClearCache(true);
webView.ClearHistory();
webView.SetWebChromeClient( new WebChromeClient { });
webView.Settings.JavaScriptEnabled = true;
webView.Settings.LoadWithOverviewMode = true;
webView.Settings.UseWideViewPort = true;
webView.LoadDataWithBaseURL("https://.", iFrameString, "text/html", "UTF-8", null);
I am passing iFrame to it, the video loads and plays ok but the fullscreen option is not available.
Solutions I tried
Enable JavaScript
Set WebChromeClient
LoadDataWithBaseURL with
https://
I also have allowfullscreen
for example the following iframe
<iframe width="560" height="315" src="https://www.youtube.com/embed/somevideoID" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
Any solution to this?