Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Disable video skipping

4 replies [Last post]

I'm using the JW flash player to stream Health and Safety videos to workstation users via CloudFront. As the user has to watch the video in its entirety, is it possible to stop users from clicking in the progress bar to skip through to later on in the video? If not then will this feature be added soon?

Oh, nvm. I just changed the seek function in Controller.as to always return false and then recompiled which seems to have done the trick:

public function seek(pos:Number):Boolean {
return false;
}

Is there anyone who is better at actionscript who can add this as a boolean flashvar? e.g. "AllowSeek" with default true?

Nevermind again. Done it now.
Patch file is at:
http://www.cryptpad.com/AddAllowSeek.patch
if anyone is interested in integrating into source control, or if anyone needs the same functionality and wants to recompile.

Just add this line to your embed code:

so.addVariable('allowseek','false');

HTH

Patch against trunk branch (r806):
http://www.cryptpad.com/AddAllowSeek_Trunk.patch