Starting a YouTube embed from a specific point in time
We’ve been adding videos of our open day talks to the Employability pages of our undergraduate course pages this week.
Open day talks for a subject invariably contain a short section covering careers and employability. In this English example, which is pretty typical of the format, the careers and employability information starts 30 minutes and 1 second into the 33 minute video. So, we want our embedded video to start after 30 minutes as well.
The standard YouTube embed for this video would be:
<iframe width="510" height="287" src="//www.youtube.com/embed/zi3sHxJcXuc?rel=0" frameborder="0" allowfullscreen></iframe>
To start this embed from a specific point:
1. Work out your starting time in seconds – for our example 30*60+1=1801 seconds
2. Add this to src url in your embed in the following format:
<iframe width="510" height="287" src="//www.youtube.com/embed/zi3sHxJcXuc?rel=0&start=1801" frameborder="0" allowfullscreen></iframe>
This is slightly different from the format for linking to a YouTube video at a specific starting point, where the format for our example would be:
Why not create a separate video?
We could have re-edited the original video to provide a standalone version with just the careers and employability section. But we rejected this option because:
- it would take more time
- the extra videos would clutter our YouTube account
- we want to leave the option open for the viewer to look at the rest of the open day talk as well, not just the careers and employability section.