Tuesday 10 September 2019

How to check if webview YouTube video player was started

In my Android app, I have a webview where there is an embedded YouTube video inside the webview. My app has a native AdMob banner.

I'd like to hide the native admob banner from the app when user plays the video, so the banner does not show while the video is playing and then show the ads again when the video stops playing

The issue is that I do not know how to check if the video was started or stopped.

Any idea how this can be done? Thanks much.



from How to check if webview YouTube video player was started

No comments:

Post a Comment