To embed the YouTube API video player without related videos appearing at the end, you need to add the parameter “rel=0” to the end of the embed code. This will disable the related videos from appearing at the end of your video. Here’s an example of the modified embed code:
<iframe width="560" height="315" src="https://www.youtube.com/embed/XXXXXXXXX?rel=0" frameborder="0" allowfullscreen></iframe>
Replace “XXXXXXXXX” with the ID of the YouTube video you want to embed.
Note: Keep in mind that if the video owner has allowed their video to be embedded, they still have control over whether related videos will show up on their video or not. If they have disabled this feature within their YouTube settings, your “rel=0” parameter won’t make a difference.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-07-20 11:00:00 +0000
Seen: 20 times
Last updated: Jul 11 '21
How can one obtain live data from interactive broker through API?
Why am I not getting a response when making a URL call in ASP.NET Web API?
Is it possible to have multiple docks in a single project using rswag rails?
How can I retrieve folders using the Vimeo API?
How can the integration between Ready API tool and Zephyr squad be accomplished?
Does Amazon SP API have a designated endpoint to obtain a seller's identification?
What is the process to restrict Google API key using HTTP referrers?