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

Stopping video onbackpressed #22

Open bennyk53 opened 7 years ago

bennyk53 commented 7 years ago

Hello,

Everything works great I love it!!!, I noticed that when the video ends it will exit full screen but when I exit full screen via back button it keeps playing, is there a way to fix this? I have been working on this for 2 days.

YugankaS commented 7 years ago

Are you calling webview.onPause() in onBackPressed? I was facing a similar issue earlier and this worked for me.