Is there any way to disable “Watch Next” block at the end of video using YouTube Android Player API?

允我心安 提交于 2019-12-08 04:37:28

问题


In my app I'm using YouTube Android Player API library from here https://developers.google.com/youtube/android/player/ I have a fragment that extends YouTubePlayerFragment. All works fine, but I need to make some improvements to app.

At the end of some videos I see block "Watch Next" with the link to another video, so I'm curious - does we have a possibility to disable this feature?

I created another solution using WebView, and display video using it - in this case I'm able to turn off any other additional links using "rel=0" in video url, but I want to use native solution.

Any ideas?

Thanks in advance!

来源:https://stackoverflow.com/questions/28586206/is-there-any-way-to-disable-watch-next-block-at-the-end-of-video-using-youtube

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