I want to embed a youtube video and provide buttons which, when you click them goes to a specific time in the video and resumes playing from there.
I've tried using jquery and changing the src attribute, like so:
Original source:
<iframe src=http://www.youtube.com/embed/PjDw3azfZWI?&t=5m30s&rel=0&>
JS:
$(#link1).click(function() {
$(#video).attr(src, http://www.youtube.com/embed/PjDw3azfZWI?&t=10m30s&rel=0&);
});
This caused the browser to refresh when I clicked the button.
Link to image of what I'm thinking: http://i.imgur.com/sCFZSIn.png. Clicking the buttons should make the video jump to the time specified.