YouTube value "-nocookie: and" rel = 0 "in iframe embed code

If I copy the embed code from the YouTube video, I will get the code below.

<iframe width="560" height="315" src="//www.youtube.com/embed/kk5xfK0ovrk" frameborder="0" allowfullscreen></iframe> 

And if I choose the size of 1280x760 for the video and copy the embed code, I get:

 <iframe width="1280" height="720" src="//www.youtube-nocookie.com/embed/kk5xfK0ovrk?rel=0" frameborder="0" allowfullscreen></iframe> 

But if I just take the source code for embedding and change only the width to 1280 and the height to 720, I also get a very good video of 1280x760. So I'm wondering what the purpose is for “-nocookie” and “rel = 0” in the YouTube code generated for the 1280x560 case.

thanks

+4
source share
1 answer

New YouTube 'nocookie' feature and citation from YouTube rel = 0 Documentation:

rel (supported players: AS3, AS2, HTML5) Values: 0 or 1 . The default is 1. This option specifies whether the player should show related videos when the source video ends.

But after September 25, 2018 , you won’t be able to disable related videos. Instead, if rel is set to 0, linked videos will come from the same channel as the video you just played.

For more information, you can check out YouTube’s built-in players and player options, which lists all the options.

+5
source

All Articles