Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Re-broadcasting streaming media (http://stream-recorder.com/forum/forumdisplay.php?f=38)
-   -  

Overview page with multiple live streams using JW Flash Player

(http://stream-recorder.com/forum/showthread.php?t=6115)

Ryanne 03-20-2010 05:39 PM

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!!!!

Stream Recorder 03-21-2010 12:57 AM

Re: Overview page with multiple live streams using JW Flash Player


 
Quote:

Originally Posted by Ryanne (Post 17410)
From the JW Player setup wizard:
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','bunny.flv');
  so.addVariable('streamer','rtmp://edge01.fms.dutchview.nl/botr');

  so.write('mediaspace');
</script>


file and streamer are the only variables that are needed to show RTMP stream with JW Player. You already have them, so you don't need to use any URL Finders.

JW Player is a commercial product. It has enough documentation on its web-site.

Read the following guide for more "Streaming Video with the JW Player".

Ryanne 03-21-2010 03:13 AM

Re: Overview page with multiple live streams using JW Flash Player


 
Thnx for your reply.

The file and streamer in the first code however, are examples provided by JW Player. I'll change it in the starting post.
I need the file and streamer from the second code.

Does showPlayer(typeValue,type) and showPlayer('bdl_boomklever_binnen','liveStream') have anything to do with the filename?

Stream Recorder 03-21-2010 07:58 AM

Re: Overview page with multiple live streams using JW Flash Player


 
Sorry, I overlooked you description.

If you have linux, try to find the URL and its parameters with rtmpsuck.

If you have Windows only, then try to find an english version of CooJah.
Did you download it from
"http://www.hensence.com/en/coojah/download.htm" ?

And you can try to find stream URLs with Orbit Grab++ or NetTransport.

You can also try to use demo versions of Replay Media Catcher, Jaksta to see what kind of protocol is used for streaming. Note that the latter two programs do not reveal RTMP stream URLs, but at least they will show you HTTP URLs and allow you see whether RTMP protocol is used.

Ryanne 03-21-2010 01:44 PM

Re: Overview page with multiple live streams using JW Flash Player


 
Thanks again.
I'm on Win XP. Coojah (yes, from that site) keeps giving me some kind of Chinese/Japanes version. I tried it on 2 computers now.

But Orbit gave me this:
Code:

rtmp://streams.uvid.nl:80/streams_uvid|streams_uvid|bdl_kerkuil_binnen|http://www.uvid.nl/players/uvid_player.swf?v=bdl|http://www.beleefdelente.nl/kerkuil&OBT_fname=bdl_kerkuil_binnen.flv
I've tried several combinations, but still I don't know, what to fill in where.

This is one I tried:
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','bdl_kerkuil_binnen.flv');
  so.addVariable('streamer','rtmp://streams.uvid.nl:80/streams_uvid');
  so.write('mediaspace');
</script>

That gives no error, but the stream won't load. I guess I should do something with the other information Orbit gave me, but I still don't
know what to do.

I hope I'm just a little push away form the solution. I bet you can give me that push. And yes, you may think "you noob, why idn't you think of that yourself" :p

Stream Recorder 03-21-2010 02:06 PM

Re: Overview page with multiple live streams using JW Flash Player


 
I'm myself not very good at RTMP parameters. RTMP is very different from what was used in other streaming protocols. I mostly use GUI programs that don't require to learn more about it.

Try to use NetTransport.

Or try to download the stream found with Grab++ using Orbit Downloader. May be it will show the URL that you need.

The easiest way seems to be to use rtmpsuck. But I don't really know how to make it work on Windows. If you install Linux, you shouldn't have any problems with it.

Ryanne 03-21-2010 02:34 PM

Re: Overview page with multiple live streams using JW Flash Player


 
Grab++ and Orbit gave me the info I mentioned:
Code:

rtmp://streams.uvid.nl:80/streams_uvid|streams_uvid|bdl_kerkuil_binnen|http://www.uvid.nl/players/uvid_player.swf?v=bdl|http://www.beleefdelente.nl/kerkuil&OBT_fname=bdl_kerkuil_binnen.flv
NetTransport about the same:
Code:

rtmp://streams.uvid.nl:80/streams_uvid<break>bdl_kerkuil_binnen.flv        http://www.beleefdelente.nl/kerkuil        http://www.uvid.nl/players/uvid_player.swf?v=bdl
Could it be it's just protected and can it only be played from the original site?
Well, thanks for helping me. Maybe someone else will give me the finale clue. But if you get a 'bright idea, I'd love to hear it of course.
Meanwhile, I'll just keep trying.

Stream Recorder 03-21-2010 02:50 PM

Re: Overview page with multiple live streams using JW Flash Player


 
Try to read more about RTMP(E) streams in the rtmpdump forum. It may give you better understanding
http://stream-recorder.com/forum/rtmpdump-f54.html

Since the URL seems to be correct, I would recommend to ask the question in the JW Player forum as well.
May be you just need to add the type variable:
Code:

so.addVariable('type', 'video');


All times are GMT -6. The time now is 09:23 AM.