I dumped the first code and now I want to use this because it display title and images on the right side of the player. How can I modify it to play jamrooms latest videos?
Code
<div class="body_6">
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('http://www.mysite.com/include/jeroen/mediaplayer.swf','mpl','700','350','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','350');
so.addVariable('width','700');
so.addVariable('file','http://mirror.video.blip.tv/hot-shows.xml');
so.addVariable('backcolor','0x000000');
so.addVariable('frontcolor','0x999999');
so.addVariable('lightcolor','0x999999');
so.addVariable('displayheight','320');
so.addVariable('displaywidth','400');
so.write('player');
</script>
Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA
Posted: 06/01/08 16:13
mapyaboy:
I dumped the first code and now I want to use this because it display title and images on the right side of the player. How can I modify it to play jamrooms latest videos?
Code
<div class="body_6">
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('http://www.mysite.com/include/jeroen/mediaplayer.swf','mpl','700','350','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','350');
so.addVariable('width','700');
so.addVariable('file','http://mirror.video.blip.tv/hot-shows.xml');
so.addVariable('backcolor','0x000000');
so.addVariable('frontcolor','0x999999');
so.addVariable('lightcolor','0x999999');
so.addVariable('displayheight','320');
so.addVariable('displaywidth','400');
so.write('player');
</script>
</div>
You need to use the proper "play.php" link in your file param:
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('http://www.meandmusic.com/include/jeroen/mediaplayer.swf','mpl','700','350','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','350');
so.addVariable('width','700');
so.addVariable('file','http://localhost/meandmusic/play.php?mode=video&band_id=`$BAND_ID`&type=flv&video_id=all');
so.addVariable('backcolor','0x000000');
so.addVariable('frontcolor','0x999999');
so.addVariable('lightcolor','0x999999');
so.addVariable('displayheight','320');
so.addVariable('displaywidth','400');
so.write('player');
</script>
The player seems to be loading the video but takes forever. Any clues to get this to work,will pay for your time because I really need it and have wasted four days on it. Anyone interested send me a PM
Code
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('{$JAMROOM_URL}/include/jeroen/mediaplayer.swf','mpl','700','350','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','350');
so.addVariable('width','700');
so.addVariable('file','{$JAMROOM_URL}/play.php%3Fmode%3Dvideo%26band_id%3D`$BAND_ID`%26video_id%3Dall');
so.addVariable('type','flv');
so.addVariable('image','{$VIDEO_IMAGE_URL}');
so.addVariable('title','{$ARTIST_URL}/video.php}{$VIDEO_NAME}');
so.addVariable('author','{$ARTIST_URL}{$BAND_NAME}');
so.addVariable('backcolor','0x000000');
so.addVariable('frontcolor','0x999999');
so.addVariable('lightcolor','0x999999');
so.addVariable('displayheight','320');
so.addVariable('displaywidth','400');
so.write('player');
</script>