Hello,
I have looked through the forums and have not been able to determine exactly how to load 2 or more players in the same webpage. The first player always loads, but the second does not show up on the screen
I am using the example script provided:
/*
* window.onload event occurs after all HTML elements have been loaded
* this is a good place to setup your Flash elements
*/
window.onload = function() {
/*
* flashembed places Flowplayer into HTML element
* whose id="example" (see below this script tag)
*/
flashembed("example",
/*
* second argument supplies standard Flash parameters.
* basically these are all you want to modify
* but you can see full list here
*/
{
src:'http://videowebz.com/media/flowplayer/FlowPlayerDark.swf',
width:360,
height:229,
bgcolor:'#ffffff'
},
/*
* third argument is Flowplayer specific configuration
* full list of options is given here
*/
{config: {
videoFile: 'http://videowebz.com/images/FlashVideos/Coiba.flv',
initialScale: 'scale',
useNativeFullScreen: true, autoPlay: false
// supply more options here by separating them with commas
}}
);
}
What exactly do I need to change in order to get 2 different players working on the same page. If you could describe the exact fields that needs to get changed, I would appreciate it
The code above adds the
The code above adds the player to a page element with ID "example". This is defined using the first parameter to flashembed:
/*
* flashembed places Flowplayer into HTML element
* whose id="example" (see below this script tag)
*/
flashembed("example", ....
To add a second player define a second element (usually a div) with some other ID like "player2". Then embed the player into that element using:
flashembed("player2", ....
Please post again if you need more help.
a new tool
We have a new tool specifically for this purpose
http://www.flowplayer.org/tools/flow-embed.html