Playing YouTube video with start and end time using YouTube API

youtubeyoutube-api

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?

Best Answer

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.