View Single Post
  #1  
Old 03-20-2010, 05:39 PM
Ryanne Ryanne is offline
Junior Member
 
Join Date: Mar 2010
Posts: 4
Ryanne is on a distinguished road
Default

Overview page with multiple live streams using JW Flash Player


I'll excuse myself in advance: I'm a complete nitwit in this stuff.

I'm want to make an overview page on my website with all the live streams from "http://www.beleefdelente.nl" (not my website).
For this I want to use JW Player.

I don't even know if this is possible, but I can't get the stream URL right. I tried URL Snooper, CooJah + Blader (I keep getting some kind of Chinese version), but I can't figure the URL out.

From the JW Player setup wizard (note: the file and rtmp stream are examples by JW):
Code:
<script type='text/javascript' src='swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
  var so = new SWFObject('player.swf','ply','470','290','9','#ffffff');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addParam('wmode','opaque');
  so.addVariable('file','example.flv');
  so.addVariable('streamer','rtmp://example.stream.nl');
  so.write('mediaspace');
</script>
From one of the pages with the live streams. What should I extract from this code and fill in in the code above?
Code:
<script type="text/javascript"> 
  function showPlayer(typeValue,type)
  {
   var so = new SWFObject("http://www.uvid.nl/players/uvid_player.swf?v=bdl", "uvid_player.swf?version=2.0_345", "100%", "100%", "10", "#ffffff");
    so.addParam("wmode", "window");
    so.addParam("bgcolor", "#ffffff");
    so.addParam("allowscriptaccess", "always");
    so.addParam("allowfullscreen", "true");
    so.addVariable("type", ""+type+"");
    so.addVariable("sliderBgColor", "cccccc");
    so.addVariable("fontColor", "ffffff");
    so.addVariable("playerId", "1");
    so.addVariable("format", "");
    so.addVariable("typeValue", ""+typeValue+"");
    so.addVariable("environment","production");
    so.addVariable("settingId", "1");
    so.addVariable("backgroundColor", "809838");
    so.addVariable("debug", "0");
    so.addVariable("autoPlay", "1");
    so.addVariable("highlightColor", "ffffff");
    so.addVariable("website", "www.beleefdelente.nl");
    so.useExpressInstall('http://www.uvid.nl/players/expressinstall.swf')
    so.write("theplayer");
  }
 
  document.observe("dom:loaded", function() {
  try {
      transid= parseInt(location.hash.substring(1));
      if(!isNaN(transid))
      {
        showPlayer(transid,'transactionId');
      }
      else
      {
         
            showPlayer('bdl_steenuil_binnen','liveStream');
         
      }
    } catch (exception) {
 
    }
});
</script>
Is there anyone that can tell me if what I want is possible and if so, what the right code for the JW player is?
If I could get one stream right, I guess I can figure out the rest.
Thanx in advance!!!!

Last edited by Ryanne : 03-21-2010 at 03:15 AM. Reason: file and stream in first code alterd to example
Reply With Quote