[ACCEPTED]-HTML5 video seeking-html5-video
Accepted answer
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.
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();
}
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.