We are trying to make videos loaded and played in an Android WebView play automatically in fullscreen, and pause when the fullscreen is exited (we are using a custom JS video player for the embedded videos). This behaviour is the default on iOS if allowsInlineMediaPlayback is set to false and we are trying to mimic that for our android app.
allowsInlineMediaPlayback
false
We've already implemented the onShowCustomView and onHideCustomView, so manually entering fullscreen works. But how can we force it?
onShowCustomView
onHideCustomView
2.1m questions
2.1m answers
60 comments
57.0k users