Forum Moderators: open
If it needs a second player, can I just copy the file of the player, rename it, and then change the embed code to reflect the change? If so, will I need to do that for all three files that one needs to use for the player to work?
Here is the coding that I use for each player (I have changed the path to the file to a bogus one for posting purposes):
<a
href="http://www.mydomain.com/folder/fiel.flv"
style="display:block;width:640px;height:360px;"
id="player">
</a>
<script language="JavaScript">
flowplayer("player", "flowplayer-3.1.1.swf", {
clip: {
// these two configuration variables does the trick
autoPlay: false,
autoBuffering: true // <- do not place a comma here
}
});
</script>
For the second video, I use the same exact coding except the path to the file and the resolutions are different.
And if you think there is a better free FLV player out there for websites, please do tell. Thanks.
id="player"
And here . . .
flowplayer("player",
ID's represent unique elements on a page. You will have to create a second instance of "flowplayer" and a second ID:
id="player2"
......
flowplayer("player2",....
The creator's documentation may support multiple players on one page, refer to any help files from them for further answers.