youtube-iframe-api remove suggestion thumbnails at bottom of video

痞子三分冷 提交于 2019-12-25 08:59:11

问题


Could somebody tell me how to remove youtube suggestion thumbnails on embedded video.

I am using iframe api. It feel like it should be easy. But i just can't find anything on google on how to do it.

tag.src = "https://www.youtube.com/iframe_api"; function initPLayer(playerDivId){ return new YT.Player(playerDivId, { height: '390', width: '640', videoId: '4EDMR75lrKY', events: { 'onReady': onPlayerReady1, 'onStateChange': onPlayerStateChangePlayer1 } }); }

Thanks for help!


回答1:


I knew it was obvious :P.

There is thing called player parameters. Rel: This parameter indicates whether the player should show related videos when playback of the initial video ends. Supported values are 0 and 1. The default value is 1.



来源:https://stackoverflow.com/questions/44520448/youtube-iframe-api-remove-suggestion-thumbnails-at-bottom-of-video

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