HTML5 video seeking HTML5 video seeking jquery jquery

HTML5 video seeking


seekToTime:function( value ){    var seekToTime = this.videoPlayer.currentTime + value;    if( seekToTime < 0 || seekToTime > this.videoPlayer.duration )         return;    this.videoPlayer.currentTime = seekToTime;}

This is the seek function we are using. It's in MooTools syntax, but you'll get the point. Hope it helps.


i guess you built your own controls with js and css?! well, therefore you have to extend your swf that you can call your seek function from javascript. external interface is your friend: in actionscript/flash:

 import flash.external.ExternalInterface;  ExternalInterface.addCallback( "methodName", this, method );  function method() { trace("called from javascript"); }

call this via javascript

function callAS() {    swf.methodName();}