How To YouTube Embed Code iframe Set Start Time Stop Time And Auto Play
Restored from the Empower Network archive (2011–2017), lightly edited to meet our current advertising standards. Views are the original author’s.
How To YouTube Embed Code iframe Start Time Stop Time And Autoplay
This is a question I am asked a lot how To Youtube Embed Code iframe Start Time Stop Time And Auto play. Of these three the question of how to autoplay YouTube videos is number one, so lets cover that first.
To autoplay YouTube videos add the following to the end of the video url &autoplay=1. Below is a screenshot of how the code will look for a YouTube video that will start automatically when the page opens.
<iframe frameborder=”0″ height=”326″ src=”http://www.youtube.com/embed/ZWpcevD316s?&autoplay=1” width=”580″></iframe>
You may want to change the start time of a YouTube video because their is too much down time in the beginning or the specific point you want to show is in the middle or toward the end. Here is how to change the start time for your YouTube video.
First to change the start time if you want to use the url. This can be done right on YouTube below the video with the click of a button. Click on the share button, click the radio box to the right of url (start at) and fill in minutes and seconds where you want the video to start.
To change the start time for <iframe> code add ?start=xxx (xxx is the number of seconds beyond the beginning of the video that you want to start when someone clicks play.
<iframe frameborder=”0″ height=”326″ src=”http://www.youtube.com/embed/ZWpcevD316s?start=xx” width=”580″></iframe>
To change the start time and have the video play automatically when the page opens you will add both codes, like this ?start=xx&autoplay=1 (xx is the number of seconds). The screenshot below is an example of how it will look.
<iframe frameborder=”0″ height=”326″ src=”http://www.youtube.com/embed/ZWpcevD316s?start=1335&autoplay=1” width=”580″></iframe>
Here is how you embed a certain portion of a video with <iframe> by using a start time and an end time. To set start time and stop time for YouTube video add the following code after the url ?start=15&end=30 it will look like the screenshot below.
<iframe width=”420″ height=”315″ src=”http://www.youtube.com/embed/P5_NpFlBqiY?start=15&end=30” frameborder=”0″></iframe>
How To YouTube Embed Code iframe Start Time Stop Time And Autoplay
Here is a example of a 5 minute video that will play from 15 to 30 seconds, when you push play.
Maybe you only want to show the beginning of a video or cut out a link that shows in the end. To set the stop time for a YouTube video add this code ?end=xxx to the end of the url, (screenshot below).
<iframe width=”580″ height=”326″ src=”http://www.youtube.com/embed/P5_NpFlBqiY?end=15” frameborder=”0″></iframe>
If you want to do all of the above, this is how to YouTube embed code iframe set start time stop time and auto play. Add the follow to end of url ?start=15&end=30&autoplay=1
Example
<iframe width=”420″ height=”315″ src=”http://www.youtube.com/embed/P5_NpFlBqiY?start=15&end=30&autoplay=1” frameborder=”0″></iframe>
How To YouTube Embed Code iframe Start Time Stop Time And Autoplay
If you found value in this video, leave a comment. If you have questions, contact me here and I will get back to you.
A team training website for our team members only that offers step by step video training from newbie to advanced marketing strategies. A fast start guide to get you up and running fast and easy. Core steps to do daily so there is no question about what you need to do to succeed.