[ACCEPTED]-HTML5 video seeking-html5-video

Accepted answer
Score: 12
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 2 in MooTools syntax, but you'll get the point. Hope 1 it helps.

Score: 1

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

 import flash.external.ExternalInterface; 

 ExternalInterface.addCallback( "methodName", this, method ); 

 function method() { trace("called from javascript"); }

call 1 this via javascript

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

More Related questions