Procedure
To set a specific start and end time for an embedded YouTube video on your site, you just need to take the embed code and add a line of code to the source link, with your start and end times.
- First, copy your video embed code.
<iframe width="560" height="315" src="https://www.youtube.com/embed/sz2W3QfXnHc" frameborder="0" allowfullscreen></iframe> - Next, create your line of code to change the start and end times. For example, this code starts at 33 seconds and ends at 200 seconds into the video (change it to your own start and end times):
?start=33&end=200 - Now, add your code to the end of the source link in the embed code. The end result should look like this:
<iframe width="560" height="315" src="https://www.youtube.com/embed/sz2W3QfXnHc?start=33&end=200" frameborder="0" allowfullscreen></iframe>