Jul. 04, 2008ramesh
how to add playlist in flv player
Jul. 04, 2008comedian
so.addVariable('file', 'playlist.xml');or&file=playlist.xmlwhere playlist.xml is a playlist file in one of the supported formats: http://code.jeroenwijering.com/trac/wiki/FlashFormats
Jul. 05, 2008ramesh
<p id='preview'>The player will show in this paragraph</p>
<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video.flv');
s1.addParam('flashvars','file=playlist.xml');
s1.write('preview');
</script>
[b][/b]
Playlist is not support the above code i am placing everything in same folder......
Jul. 05, 2008basic
If you are using a playlist, remove this line of code:s1.addParam('flashvars','file=video.flv');Please post your playlist.
Jul. 05, 2008basic
Jul. 07, 2008ramesh
how to display playlist in bottom and how to add scrollbar for playlist.......
Jul. 07, 2008ramesh
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sample Work</title>
<style type="text/css">
body
{
font-family: verdana;
font-size: 14px;
}
</style>
<script type='text/javascript' src='http://localhost/sampleFLV/flvplayer/swfobject.js'>
function CreatePlayer(playlistname)
<div id='preview'>This is the DIV where the player will be displayed.</div>
var objSWF = new
SWFObject('http://localhost/sampleFLV/flvplayer/mediaplayer.swf', 'preview',
'770', '380', '7');
objSWF.addParam('allowscriptaccess', 'always');
objSWF.addParam('allowfullscreen', 'true');
objSWF.addVariable('file', playlistname);
objSWF.addVariable('width', '770');
objSWF.addVariable('height', '380');
objSWF.addVariable('displaywidth', '550');
objSWF.addVariable('backcolor', '0xAAAAAA');
objSWF.addVariable('frontcolor', '0x6666FF');
objSWF.addVariable('bufferlength', '5');
objSWF.addVariable('overstretch', 'fit');
objSWF.addVariable('autoscroll', 'true');
objSWF.addVariable('thumbsinplaylist', 'true');
objSWF.addVariable('autostart', 'true');
objSWF.addVariable('playlist', 'bottom');
objSWF.addVariable('scroll', 'true');
objSWF.write('preview');
}
</script>
</head>
<body>
<h4>Sample Streaming Video Implementation</h4>
<p>
<script type='text/javascript'
src='http://localhost/sampleFLV/flvplayer/swfobject.js'></script>
<div id='preview'>This is the DIV where the player will be displayed.</div>
<script type="text/javascript">
var objSWF = new
SWFObject('http://localhost/sampleFLV/flvplayer/mediaplayer.swf', 'preview', '770', '380', '7');
objSWF.addParam('allowscriptaccess', 'always');
objSWF.addParam('allowfullscreen', 'true');
objSWF.addVariable('file', 'playlist.xml');
objSWF.addVariable('width', '770');
objSWF.addVariable('height', '380');
objSWF.addVariable('displaywidth', '550');
objSWF.addVariable('backcolor', '0xAAAAAA');
objSWF.addVariable('frontcolor', '0x6666FF');
objSWF.addVariable('bufferlength', '5');
objSWF.addVariable('overstretch', 'fit');
objSWF.addVariable('autoscroll', 'true');
objSWF.addVariable('thumbsinplaylist', 'true');
objSWF.addVariable('autostart', 'true');
objSWF.addVariable('playlist', 'bottom');
objSWF.addVariable('scroll', 'true');
objSWF.write('preview');
</script>
</p>
<p>
1. <a href="#" onclick="javascript:CreatePlayer('playlist.xml');">Playlist
One</a><br />
2. <a href="#" onclick="javascript:CreatePlayer('playlistone.xml');">Playlist
Two</a><br />
</p>
</body>
</html>
Jul. 07, 2008ramesh
THe above code is whenever we are pressing the playlist one,the player will load corresponding playlist but i have some problem how to achieve this........
Jul. 07, 2008basic
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Don't use the onload attribute in the body tag if you don't want the player to load when the page loads.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sample Work</title>
<style type="text/css">
body
{
font-family: verdana;
font-size: 14px;
}
</style>
<script type='text/javascript' src='http://localhost/sampleFLV/flvplayer/swfobject.js'></script>
<script type="text/javascript">
function CreatePlayer(playlistname)
{
var objSWF = new SWFObject('http://localhost/sampleFLV/flvplayer/mediaplayer.swf', 'preview', '770', '380', '7');
objSWF.addParam('allowscriptaccess', 'always');
objSWF.addParam('allowfullscreen', 'true');
objSWF.addVariable('file', playlistname);
objSWF.addVariable('width', '770');
objSWF.addVariable('height', '380');
objSWF.addVariable('displaywidth', '550');
objSWF.addVariable('backcolor', '0xAAAAAA');
objSWF.addVariable('frontcolor', '0x6666FF');
objSWF.addVariable('bufferlength', '5');
objSWF.addVariable('overstretch', 'fit');
objSWF.addVariable('autoscroll', 'true');
objSWF.addVariable('thumbsinplaylist', 'true');
objSWF.addVariable('autostart', 'true');
objSWF.addVariable('playlist', 'bottom');
objSWF.addVariable('scroll', 'true');
objSWF.write('preview');
};
</script>
</head>
<body onload="CreatePlayer('playlist.xml');">
<h4>Sample Streaming Video Implementation</h4>
<div id="preview">This is the DIV where the player will be displayed.</div>
<p>
1.
<a href="#" onclick="javascript:CreatePlayer('playlist.xml'); return false;">Playlist One</a>
<br />
2.
<a href="#" onclick="javascript:CreatePlayer('playlistone.xml'); return false;">Playlist Two</a>
<br />
</p>
</body>
</html>
Jul. 08, 2008ramesh
how to display playlist below the above code it will displayed on right side
Jul. 08, 2008kLink
var objSWF = new SWFObject('http://localhost/sampleFLV/flvplayer/mediaplayer.swf', 'preview', '550', '550', '7');The formula is height = displayheight + 20 + (41 * tracks)
objSWF.addVariable('width', '550');
objSWF.addVariable('height', '550');
objSWF.addVariable('displayheight', '380');
Jan. 13, 2009ramesh
how to change the playlist height.......
May. 26, 2009<p id='preview'>
<p id='preview'>The player will show in this paragraph</p>
Jun. 11, 2009huh
where do i type all this???
Sep. 15, 2009dfdddddddddddddd
hello how r u? form xyz[b][/b]
Sep. 15, 2009pragna
how to disply flv vedio in php or html page plez give me a code
Oct. 23, 2009rajan
Is it possible to place stream url external to the playlist xml file. I expect it is not essential to have the url within the xml file.
Oct. 23, 2009noBody
For RTMP streaming and pseudostreaming using a serverside script, you can use the stream URI as the value of the streamer flashvar, which can be global.
For pseudostreaming using the modules for IIs, Apache2, nginx, and LightTPD, you can't do this because the URI for the file must be in the file flashvar or the equivalent playlist element (if you only supply a URL, the player will construct the full URI).
Oct. 23, 2009rajan
Thnaks for the clarification.
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.