John's Corner

Youtube embed links

This tip covers how to create Youtube embed links for use in full screen or iframes.
(related pages Youtube URL parameters and Youtube live channels)

 

Embed links provide a clean and officially supported method to view a Youtube video without the surrounding text or thumbnail links to other videos, making ideal to embed in your own web page or view as a full screen. Suppose a video has the following link:

https://www.youtube.com/watch?v=ABCDEFGHIJK

The embed link is then:

https://www.youtube.com/embed/ABCDEFGHIJK

Note: The embed link may not play if disabled by the video owner

 

A Youtube livestream permanent URL is of the form:

https://youtube.com/channel/CHANNEL_ID/live

The embed link is then:

https://www.youtube.com/embed/live_stream?channel=CHANNEL_ID

The CHANNEL_ID is the 24 character Youtube User ID available in the Advanced Settings in Youtube. It will also be contained in the URL of the channel owners page.

eg. https://www.youtube.com/channel/UCLA3Uc4amh-v5eIS6M_r2ow

To autoplay, add &autoplay=1 to end of link. Other parameters can also be added.


Return to Tips and Tricks

John's Corner