cprcrack / VideoEnabledWebView

Android's WebView and WebChromeClient class extensions that enable fully working HTML5 video support
MIT License
1.05k stars 289 forks source link

Toggle the fullscreen from embed video programmatically and removing onBackPressed function of WebView. #47

Open ArcherEmiya05 opened 4 years ago

ArcherEmiya05 commented 4 years ago

I was able to get the result I want but at some point I want to programmatically toggle the fullscreen button. I tried to set toggledFullscreen(boolean) but no effect at all.

I also tried to change the onBackPressed and just call its super but still it changes the view mode between full and minimize view before exiting the app. I do not need it for my case I want to close the app after backpress no more minimizing the player can I do that? Thanks by the way because of this sample I am nearly to what I need to do for this task.

maxakash commented 2 years ago

Hey @ArcherEmiya05 were you able to toggle full screen mode programatically?