34

I'm trying to figure out how to set a custom start and end time for an embedded YouTube video shown below:

https://youtube.googleapis.com/v/BmOpD46eZoA%26start=36%26end=65

However the above link is not working properly in the Safari browser. Can anyone suggest how to make this work for the Safari browser?

55

Your problem is on the encoding of "?"and "&".

https://www.youtube.com/v/BmOpD46eZoA?start=36&end=65

or

http://www.youtube.com/embed/BmOpD46eZoA?start=36&end=65 

simply works fine.

13
  • 4
    its playing full video. – SureshKumar Vegesna Oct 22 '13 at 4:23
  • 4
    Just edited my answer, the problem you are having is in URL encoding. When it encodes "&" it doesn't work. – Ibrahim Ulukaya Oct 22 '13 at 11:59
  • thank you very much. it's working fine in all browsers both mobile and desktop – SureshKumar Vegesna Oct 23 '13 at 6:56
  • 7
    In Safari (os-x), the start is working, but the video just plays to the end, doesn't stop at end-time. – Olie Apr 20 '15 at 22:42
  • 1
    The /v/ link also causes a download to happen on Firefox Android. The embed link works on the desktop site, but not YT app. – BotOfWar Jun 14 '19 at 12:41
5

You should try

https://www.youtube.com/embed/-ZWGpOSS6T0?start=130&end=144&version=3

First thing you have to do is of course get the specific time you want your embedded video to start and the specific time you want it to end at. Then convert them into seconds. Let’s say you want to embed only the part of the video starting from 02:16 up to 02:58.

In seconds, your start time would be ( 2 * 60 ) + 16 = 136 and your end time would be ( 2 * 60 ) + 58 = 178.

Next, grab the embed code from the Youtube video, and append the following parameters to the video URL in the embed code:

?start=[your_start_time]&end=[your_end_time]&version=3

Replace [your_start_time] and [your_end_time] with your actual start and end times in seconds so that your embed code would look like this:

Read more here, How to embed or link to a specific part of a YouTube video

1
  • not that the embedding thing wont work if "Playback on other websites has been disabled by the video owner." – mithunpaul May 14 '20 at 22:19
1

Try this link, it must be helpful

https://www.youtube.com/v/BmOpD46eZoA?start=36&end=65&version=3
1
  • 4
    Note: version=3 uses Flash API version3. This may not work on iOS which uses html5 player. Remove version=3 to make it work on iOS. – GuruM Feb 17 '14 at 9:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.