1
Good afternoon, I have an application ( in Xamarin for android) where within it opens a webview on a link of a platform courses I have... but there is a big difference between I open this platform on my webView and in a browser like Chrome for example... In webView the video of the VIMEO platform, when I press play, I can’t pause and leave it on fullscreen
Already in google Chrome ( by the same device ) , it is possible to pause, put in fullscreen mode etc...
What do I need to do configuration on my webview so it doesn’t have these problems? Thank you
Here is an excerpt from the Activity code of the webview:
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
//MainActivity Url_Nav = new MainActivity();
// Create your application here
SetContentView(Resource.Layout.Nav);
mWebView = FindViewById(Resource.Id.webNav);
mWebView.Settings.JavaScriptEnabled = true;
mWebView.LoadUrl(MainActivity.url);
mWebView.SetWebViewClient(new WebViewClient());
}
}
public class WebClient1 : WebViewClient
{
public override bool ShouldOverrideUrlLoading(WebView view, string url)
{
view.LoadUrl(url);
return true;
}
}
Thank you !