views:

819

answers:

2

It should change the video and start playing regardless of whether or not a video is currently loaded and playing.

Thanks.

+1  A: 

See example below where api is your flowplayer instance and replaceclip is the one you want to start plating

var api = flashembed("player", {src:'FlowPlayerDark.swf'}, {config: ...}});
var replaceclip = {'url':'myvideo.mp4', 'autoplay':true};

<button onClick="api.playClip(replaceclip)">Play</button>
Josh
Got it working with api.play(replaceclip) rather than api.playClip(replaceclip);
Larsenal
hope i helped in some way :)
Josh
Does your code use a different version of flowplayer? I have the latest, and it doesn't support playClip. If you'd like to confirm that your code works with the current version of flowplayer, I'll accept the answer.
Larsenal
A: 

You can check out the javascript api for the flowplayer here

Specifically, you'll probably want to check out the flowplayer objects 'Clip' and 'Player'

Ian Elliott