Youtube Javascript API - disable related videos

后端 未结 8 996
小蘑菇
小蘑菇 2020-12-02 09:16

Right, this seems to be poorly documented or I can\'t see it in the documentation. I basically want no related videos (?rel=0) using the JavaScript API.

相关标签:
8条回答
  • 2020-12-02 09:39

    new YT.Player('playerid', {
        height: '550',
        width: '840',
        videoID: 'video_id',
        playerVars: {rel: 0},
    });

    0 讨论(0)
  • 2020-12-02 09:47

    No need to code through the API,now its easily can be done by

    You tube embed button -> Show more -> tickout the option 'Show suggested videos when the video finishes'

    0 讨论(0)
提交回复
热议问题