问题
Some youtube videos has those ads show up on video at the bottom of the screen. Is there any which I can find out which videos have these kind of ads?
回答1:
You can use the listener services which have methods such as onAdStarted(). Full dev doc: https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/YouTubePlayer.PlayerStateChangeListener
来源:https://stackoverflow.com/questions/20551895/is-there-any-way-to-know-if-a-youtube-video-display-ads-via-api