This is a message.

onPause = onStop Created Mar 21, 2009

This thread is solved

Views: 4685     Replies: 8     Last reply Jan 13, 2012  
You must login first before you can use this feature

Paul

Posts: 14

Registered:
Dec 17, 2008

onPause = onStop

Posted: Mar 21, 2009

Hi, I need the pause button and any time the onPause event is triggered to actually cause the player to stop (onStop?).

I'm not great with javascript so if someone could post up an example of how to do it I would be very grateful.

Cheers

Paul

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» onPause = onStop

Posted: Mar 21, 2009

Reply to: onPause = onStop, from Paul
The following should do what you want:

Flowplayer forum example

HTML setup for the player

<!-- include latest Flowplayer javascript file -->
<script language="javascript" src="path/to/flowplayer-3.2.8.js"></script>

<!-- player container with optional splash image -->
<a href="path/to/video_file" id="playerContainer">
	<img src="path/to/splash_image" />
</a>


JavaScript coding

Following script will install Flowplayer into our player container


<script language="javascript">
// our custom configuration is given in third argument
flowplayer("playerContainer", "path/tohttp://releases.flowplayer.org/swf/flowplayer-3.2.11.swf",{
clip: {
    onPause: function () {
        this.stop();
    }
}
});
</script>


Paul

Posts: 14

Registered:
Dec 17, 2008

» » onPause = onStop

Posted: Mar 22, 2009

Reply to: » onPause = onStop, from blacktrash
Thanks for that - works fine :-)