Youtube is an essential tool for most teachers these days. Over the years I’ve received several questions regarding integrating youtube videos into presentations. For example:
- Can I play just a portion of a video?
- Can I remove the related videos from being shown at the end?
- Can I make the video full screen automatically?
All of these things are simple to do when using the embedded player. The embedded player is designed to be used when embedding content into a website or blog post. It can also be used to access just the video portion of a youtube page in a browser window.
For the following examples, I will be using the ever-popular keyboard cat video.
When you click the link above, you’ll be directed to the video in the standard youtube interface. It is important to understand the anatomy of this link so that you can apply this concept to other videos. There are three distinct parts:
- The root site URL: “http://www.youtube.com/”. This tells your browser that you are looking to load a page hosted at youtube.com
- The player: “watch?v=”. This tells youtube you are looking to use the standard player (the “watch” part) and that it can expect to find which video I’m trying to load after the equal sign.
- The video ID: “J—aiyznGQ”. This is the part of the URL that identifies the video. Each youtube video has a unique video ID.
Now to load our video in the embedded player, all you need to do is change “watch?v=” to “embed/”. You can do it yourself, or click the link below.
You should find the player loaded in full screen mode and in a stopped state. I prefer linking to the embedded player in my presentations; I’m almost always needing to play the video full screen anyway.
The real power in the embedded player comes from the modifiers one can add to the end of the embedded video URL. A few examples:
- “&rel=0” will not display “related videos” when your video is over
- “&autoplay=1” will automatically start playing the video upon load
- “&loop=1” will play the video in a loop
- “&start=33” will start the video at the 33 second mark
- “&stop=37” will stop the video at the 37 second mark
One or more of these can be added at the end of the URL. They need to be seperated from the video ID by a “?”. In a basic example, if we wanted to open our video and play it immediately, the URL we would use would be:
And for a more advanced example, let’s create a URL that automatically plays, starting at the 33 second mark and stopping at the 37 second mark, that does not show any related videos after it is complete.
A list of available parameters for the embedded player can be found here.
If you have any questions, please leave a comment below.