Playing YouTube video with start and end time using YouTube API

SureshKumar Vegesna picture SureshKumar Vegesna · Oct 22, 2013 · Viewed 90k times · Source

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?

Answer

Ibrahim Ulukaya picture Ibrahim Ulukaya · Oct 22, 2013

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.