At the end of a YouTube video you will see other videos that you can choose to watch if you choose. I am embedding a YouTube video on my site and would prefer that those videos did not show at the end of the video. Is there a way to remove those videos and have just a reply option (or something similar). According to this question you can remove the annotations from YouTube Videos that are embedded on your site and that made me wonder if the same can be achieved for end of video videos.
Yes that is possible, use this script:
<iframe width="560" height="315" src="http://www.youtube.com/embed/{link}?rel=0" frameborder="0" allowfullscreen></iframe>
The important part is the ?rel=0.
The functionality of this changed on Sept. 25th 2018.
The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.
https://developers.google.com/youtube/player_parameters?csw=1#release_notes_08_23_2018
Related
I want to display my YouTube Livestream chat replay.
This is the code I tried:
<div id="live-stream-container">
<iframe width="835" height="505" src="https://www.youtube.com/embed/VIDEO_ID" title="YouTube video player" frameborder="0" ></iframe>
<iframe allowfullscreen="" frameborder="0" height="505" src="https://www.youtube.com/live_chat?v=VIDEO_ID&embed_domain=MY_DOMAIN.com"></iframe>
</div>
ps: I have input the correct video ID in VIDEO_ID & MY_DOMAIN is correctly input.
When I run this code, I am able to successfully watch my Livestream again. But, the Livestream chat replay does not appear.
It shows: "Chat is disabled for this Livestream."
I further went to research on Google and set this:
Allowed embedding in YouTube studio
Made it 'Not for kids'
No, don't restrict my video to viewers over 18 only
Allowed all comments
Livechat replay is enabled
But my code still doesn't work, it keeps showing 'Chat is disabled for this Livestream '.
ps: The Livestream ended about 20 hours ago, so the video has been processed.
Can someone guide me in the right direction to display my 'Live chat Replay'?
While several questions of embedding a single video with autoplay have been answered here, embedding a users latest video seems not to work with the autoplay option.
Single video:
https://www.youtube.com/embed/ln3wAdRAim4?start=126&controls=1&showinfo=1&rel=0&autoplay=1
Users latest video:
https://www.youtube.com/embed?listType=user_uploads&list=TheLateLateShow&controls=1&showinfo=0&rel=0&autoplay=1&loop=1
Any advice?
I do live streaming with YouTube and I can watch it on my site by coping the embed code into my site
Its looks like this below
<iframe width="640" height="360" src="https://www.youtube.com/embed/gz54fede3Y" frameborder="0" allowfullscreen></iframe>
But recently I discovered that every time I do a live stream, I have to start updating the embeded code on my site each time with the one that will be generated from my live channel.
This is because it keeps regenerating a different code. Its so frustrating to do this, is there a way to get a particular embed code that will not change so I don't have to worry about this, or is there a setting that I am not aware of.
There is a static URL to embed the video player for the "Stream now" stream. It is currently not exposed anywhere in the UI, but we will fix that soon (hopefully.)
It looks like this: https://www.youtube.com/embed/live_stream?channel=[channel ID]
You can also use a YouTube Gaming link, like so: https://gaming.youtube.com/embed/live_stream?channel=[channel ID]
You can determine your channel ID by going to https://www.youtube.com/account_advanced and copying the string after "YouTube Channel ID".
Once you've got this link, you can use it in the "src" attribute of your embed code.
I need to play VEVO videos on an HTML5 player which is created using YouTube's API in iOS.
https://developers.google.com/youtube/iframe_api_reference
Currently I'm able to play normal videos with out a glitch.But when ever i try to play a VEVO video,It says "The content cant be played outside of YouTube".Is there any legal way of going about this?.
I have already tried to set the "origin" property of the player to my domain.This did not help.
This is an Example from the above link where the origin is set
<iframe id="player" type="text/html" width="640" height="390"
src="http://www.youtube.com/embed/M7lc1UVf-VE?enablejsapi=1&origin=http://example.com"
frameborder="0"></iframe>
If anyone knows of any other way to legally play VEVO content please let me know. :).Any legal loopholes will also do :D.
I have played some vevo videos just by placing the ID.
Sometimes vevo videos have certain restractions for embedding like for example, the country from the user is fetching the video.
I want to show a video on my company website, but once the video is done, it previews other videos.
How can I stop YouTube from displaying additional videos?
The link addition is only good if I link people to the video...but if they go to the video on their own, they are still subject to the additional videos.
Add:
&rel=0
to your Youtube video URL. Example:
http://youtube.googleapis.com/v/3UBbKLjOK3A?autoplay=1&rel=0