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

Your preferred username that is used when logging in.

multiple javascript controls Created Apr 28, 2009

This thread is solved

Views: 3330     Replies: 2     Last reply Sep 6, 2010  
You must login first before you can use this feature

invisibled

Posts: 6

Registered:
Apr 28, 2009

multiple javascript controls

Posted: Apr 28, 2009

Hey Everybody,

just getting into flowplayer, love it so much!

i am building a script that requires multiple players to load on the page, with the javascript control bar. Here is my init script


window.onload = function() { 
	flowplayer("a.player", "lib/swf/flowplayer-3.1.0.swf", { 
		clip: { autoPlay: true, autoBuffering: true },
		plugins: { controls: null },
		play: {	opacity: 0 } 
	}).controls("hulu", {duration: 0}); 
};

the .controls worked with the $f function but when i converted it to the flowplayer function to support multiple players it gives me a js error saying its not a function.

i tried to find somthing in the docs but had no luck, please refer me to the correct page in the docs if i have missed it and am happy to figure it out myself. Any suggtions would be great :)

donnemoipancakes

Posts: 3

Registered:
Mar 11, 2009

» multiple javascript controls

Posted: Apr 28, 2009

Reply to: multiple javascript controls, from invisibled
We have the same issue. We have an audio and a video on the one page, and we need the video to autoplay.

You can see the code at www.talentcake.com

Any help would be great!

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» multiple javascript controls

Posted: May 28, 2009

Reply to: multiple javascript controls, from invisibled
on you example the contols are placed on a single element whose id is "hulu". If you want two controls you need to do like this


// players have been installed

// install first controls
$f().controls("hulu1");

// install second controls
$f(1).controls("hulu2");