H hanyelmehy Well-Known Member Licensed User Longtime User Jun 7, 2018 #1 How to pause the video which is playing with WebView ,specially when screen off
Erel B4X founder Staff member Licensed User Longtime User Jun 7, 2018 #2 Don't use WebView to play videos. Use ExoPlayer. Upvote 0
H hanyelmehy Well-Known Member Licensed User Longtime User Jun 8, 2018 #3 Erel said: Don't use WebView to play videos. Use ExoPlayer. Click to expand... i use WebView to show online web page this pages may have YouTube video play inside it ,when screen is turned off maybe YouTube video inside this online page still playing ,which against google play policy (violates the Device and Network Abuse policy by enabling background play (audio) of YouTube videos after the screen is turned off) i think i need something like (webView.onPause) Last edited: Jun 8, 2018 Upvote 0
Erel said: Don't use WebView to play videos. Use ExoPlayer. Click to expand... i use WebView to show online web page this pages may have YouTube video play inside it ,when screen is turned off maybe YouTube video inside this online page still playing ,which against google play policy (violates the Device and Network Abuse policy by enabling background play (audio) of YouTube videos after the screen is turned off) i think i need something like (webView.onPause)