How can I get my video player to skip/seek to a certain time. I have had a go at this and it works when the page first loads (In Chrome) but not in any other browser. I also have a flash fallback which could be a pain, but for now the priority is the HTML side of things
The major issue is that it doesn't work outside Chrome!
EDIT: This now works in IE9, Chrome and Firefox. However, not with the flash fallback!
Below is my attempt so far.
I'm using the following JS so far:
$(function () {
var v = $("#video").get(0);
$('#play').click(function(){
v.play();
});
$('.s').click(function(){
alert("Clicked: "+$(this).html() +"- has time of -" + $(this).attr('s') );
v.currentTime = $(this).attr('s'); v.play();
});
});
Which links to the following:
width="854" height="504">
Your browser can’t play HTML5 video.
With the context of having buttons with a class s and custom attribute s=60 for "60 seconds" etc.