youtube iframe api parameter rel=0 doesn't wor

2019-06-17 08:31发布

I need to hide related videos after watching the video. I set rel=0, but it is not working. I am using this page for testing. The rel checkbox value doesn't affect on shown related videos after watching video.

It doesn't work in google chrome. In mozilla firefox it properly works.

7条回答
Explosion°爆炸
2楼-- · 2019-06-17 09:35

If you want to hide related video then you should call "player.stopVideo()" when player state is ended "PlayerState.ENDED".

PS: Sorry, english is not my first language.

查看更多
登录 后发表回答