Is there any way to know if a youtube video display ads? via API?

≯℡__Kan透↙ 提交于 2019-12-13 20:55:54

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!