Hi!
I would like to initialize Flowplayer in one place and then afterwards play a clip. The thing is, in some cases I want the clip to auto play, in other cases I just want it to show up with the play button so the user can start it (this depends on where he comes from).
My first try was something like flowplayer("playerid").play({ url: foo, autoPlay: bar}). But play() seems to ignore the autoPlay setting and just play the clip no matter what?
Fair enough. Then I tried flowplayer("playerid").setClip({ url: foo, autoPlay: bar, autoBuffering: true }). But this doesn't seem to work at all. The clip is not loaded, and when I hit the play button with the mouse, the player just hangs with the spinner rotating. Adding a flowplayer("playerid").play(0) call afterwards doesn't help. Same thing happens with setPlaylist. I'm on the latest release, flowplayer-3.1.5.swf and flowplayer-3.1.4.min.js.
For now, I have resolved my problem by dropping the idea of initializing Flowplayer separately (autoplay doesn't seem to be ignored when you pass it in a clip as a config option to begin with).
The new styling stuff is very convenient, by the way! Thanks!
I would like to initialize Flowplayer in one place and then afterwards play a clip. The thing is, in some cases I want the clip to auto play, in other cases I just want it to show up with the play button so the user can start it (this depends on where he comes from).
My first try was something like flowplayer("playerid").play({ url: foo, autoPlay: bar}). But play() seems to ignore the autoPlay setting and just play the clip no matter what?
Fair enough. Then I tried flowplayer("playerid").setClip({ url: foo, autoPlay: bar, autoBuffering: true }). But this doesn't seem to work at all. The clip is not loaded, and when I hit the play button with the mouse, the player just hangs with the spinner rotating. Adding a flowplayer("playerid").play(0) call afterwards doesn't help. Same thing happens with setPlaylist. I'm on the latest release, flowplayer-3.1.5.swf and flowplayer-3.1.4.min.js.
For now, I have resolved my problem by dropping the idea of initializing Flowplayer separately (autoplay doesn't seem to be ignored when you pass it in a clip as a config option to begin with).
The new styling stuff is very convenient, by the way! Thanks!