Hi!
What I need is pretty simple:
When user clicks on a button, seek to a specific frame in html5 video and keep playing from there.
But my code here doesn't work. Instead of continuing playback from the new time (currentFrame) it will start from the beginning. How can I jump to a frame in my video and keep playing forward from there?
Here is my feeble attempt:
Code:
<div id="buttons">
<img class="choice01" src="btn_piano.jpg" onclick="jumpToTime();"/>
</div><!-- end buttons -->
<video id="videoclip"> <source src="video/testi.mp4"> your browser does not support the video tag</video>
Code:
function jumpToTime(){
document.getElementById("videoclip").currentTime = 160;
document.getElementById("videoclip").play();
};