You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Disable play button after completion of a video Created Jul 16, 2009

This thread is solved

Views: 3224     Replies: 3     Last reply Aug 6, 2011  
You must login first before you can use this feature

Arun

Posts: 22

Registered:
Jan 10, 2009

Disable play button after completion of a video

Posted: Jul 16, 2009

Hi,
I want to disable play button after the user completed watching a video.

onFinish : function() {
this.getControls().enable({play: false})
}

this is not working. Any other suggestions?

Thanks!
Arun.

dherbst

Posts: 75

Registered:
Apr 20, 2009

» Disable play button after completion of a video

Posted: Jul 16, 2009

Reply to: Disable play button after completion of a video, from raghavarun
That code works for me, but you'll note that it does not disable the 'play again' button in the center of the screen, nor a click on the screen outside of the button. It only disables the 'play' button in the controlbar.

To disable the click on the screen, a trick I've seen posted here is to set the linkUrl on the clip to '#'. For example:


... clip: { linkUrl:"#",... }

and to hide the 'play again' button in the middle of the screen:


... clip: { ...
      onFinish: function(){ this.getPlugin("play").hide(); }
... }

Arun

Posts: 22

Registered:
Jan 10, 2009

» » Disable play button after completion of a video

Posted: Jul 16, 2009

Reply to: » Disable play button after completion of a video, from dherbst
Thank you so much, ddrama! This is great detailed suggestions.

Arun.