Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Livestream Plugin

26 replies [Last post]

Hi, can you tell me ...Hi, can you tell me what is the difference between livestream.file and livestream.streamer? And why do I need a file if it's a livestream? Thanks!

See the XML file here for an explanation of the flashvars:

    http://developer.longtailvideo.com/trac/browser/plugins/livestream/livestream.xml

Or else see the documentation for the Livestream plugin here:

    http://www.longtailvideo.com/AddOns/get-instructions.html?addon=97&q=

I've read the docs but still can't understand what should I set for 'livestream.file' as I don't have a file, is 'livestream.file' optional?

For example, if my livestream URL is this:

rtmp://123.45.678.901/live/test/stream1

What should be the the value for "livestream.file"?

 
RTMP URIs break down into:

1) protocol - rtmp://

2) domain - 123.45.678.901 (or some.domain.com)

3) application - live

4) instance - (optional - possibly test)

5) prepend - (optional - mp4:)

6) path - (optional - possibly test - not likely for a livestream)

7) stream - stream1

8) extension - (optional - flv)

Since I don't know the exact configuration of your RTMP server, my first guess would be:

'livestream.streamer':  'rtmp://123.45.678.901/live/test',
'livestream.file':  'stream1',

Normally, livestreams do not have a path, so I'm guessing that "test" is the instance of the application "live".

Thanks you for your help lost, I'll try that.

So this should work right?

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('player-licensed-viral.swf','mpl','200','160','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('plugins','livestream');
so.addVariable('livestream.file','a');
so.addVariable('livestream.streamer','rtmp://123.45.678.901/live/chad');
so.addVariable('autostart','true');
so.addVariable('repeat','always');
so.write('mediaspace');
</script>

How do I know that the plugin is loaded? Because I can't see the loading message "Checking for livestream..."

 
You also need the normal streamer, file, and type for the player.

<script type='text/javascript'>
var so = new SWFObject('player-licensed-viral.swf','mpl','200','160','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
<strong>so.addVariable('streamer','rtmp://123.45.678.901/live/chad');
so.addVariable('file','a');
so.addVariable('type','rtmp');</strong>
so.addVariable('plugins','livestream');
so.addVariable('livestream.file','a');
so.addVariable('livestream.streamer','rtmp://123.45.678.901/live/chad');
so.addVariable('autostart','true');
so.addVariable('repeat','always');
so.write('mediaspace');
</script>

You can use ieHTTPHeaders for Internet Explorer or Live HTTP Headers for Firefox to see the requests & responses.

So I did this,

<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-licensed-viral.swf','mpl','200','160','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('streamer','rtmp://123.45.67.890/live/chad');
so.addVariable('file','a');
so.addVariable('type','rtmp');
so.addVariable('plugins','livestream');
so.addVariable('livestream.file','a');
so.addVariable('livestream.streamer','rtmp://123.45.67.890/live/chad');
so.addVariable('autostart','true');
so.addVariable('repeat','always');
so.write('mediaspace');
</script>

And I was prompted with a warning message:

http://i33.tinypic.com/4loktj.png

and there is nothing in the Live HTTP headers.

Though the stream is working on VLC if I enter this address:

rtmp://123.45.67.890/live/chad/a

(The IP has been replaced)

 
I was wrong about the files...

This seems to work:

<script src="swfobject.js"></script>

<div id="mediaspace">This text will be replaced</div>

<script type="text/javascript">
  var so = new SWFObject('player-4.6.341.swf', 'mpl', '200', '160', '9.0.124');
      so.addParam('allowscriptaccess',       'always');
      so.addParam('allowfullscreen',         'true');
      so.addVariable('plugins',              'livestream-1');
      so.addVariable('livestream.streamer',  'rtmp://12.34.56.78/oflaDemo');
      so.addVariable('livestream.file',      'stream1254878477417');
      so.addVariable('livestream.interval',  '5');
      so.addVariable('livestream.image',     'image.jpg');
      so.addVariable('autostart',            'true');
      so.write('mediaspace');
</script>

Nop, the warning message is gone but still nothing. I'm suppose to see the loading message, but I don't... =(

And also the plugin name is "livestream-1" or just "livestream"?

Thanks

 
The plugin can be livestream-1 or livestream, they're both the same.

What type of RTMP server are you using?

I'm using Flash Media Live Encoder 3 and Flash Media Streaming Server.

Hi 5h4rk,

This is Ethan from LongTail here to help you.

Can you link me to where you are running our player on your site so I can take a look at your implementation so I can better help you?

Please email me directly at ethan [at] longtailvideo [dot] com to follow up if you have any other questions, thank you.

Best Regards,
-Ethan

Hey I have this playlist where the first 2 positions are continuous playing streams the 3rd is a non-continuous stream which I activate only once a week (all streams are WOWZA-RTMP).

Q: how can I get Livestream plugin to work in a playlist?

I want to play the playlist items normaly and when I get to the non-continuous stream, let the Livestream to kick in.

Why are you going to solve these problems by e-mail. I think I have the same problem, hope you can post the solution after 5h4rk has got it work correctly.

Hello,

i tried to use the plugin and a week ago it did work i remember. But now i wan't to use it it won't work anymore

my questions are:
1: the streamer type, is only the rtmp protocol allowed?
2: the online demo example isn't working anymore howcome?
3:
so.addVariable('livestream.image', '/images/verbinden.jpg');
so.addVariable('livestream.interval', 5);
so.addVariable('livestream.message', 'zoekt verbinding met live stream...');

so.addVariable('livestream.file', 'livestream');
so.addVariable('livestream.streamer', 'rtmp://mystream.fakeurl/');

what am it doing wrong?

1.) Streamer (and LiveStream) works in a playlist, though you will need to use jwplayer namespace elements (http://developer.longtailvideo.com/trac/wiki/FlashFormats)

2.) Which demo isn't working?

3.) hard to diagnose 3 without an actual URL / stream.

Thanks for the replay Zachary,

1: types, i ment to ask if there of more streaming types allowed besides the rtmp protocol. for example mms en rtsp....

2: the livestream demo won't connect to the live source maybe the url: rtmp://fl9.maelstrom.jet-stream.nl/vod/ is not working anymore. http://www.longtailvideo.com/addons/plugins/97/get-examples.html?addon=97&q=

3: it's a direct watch link to a site that people pay money for. So i was a little scared to publish. I could mail it to you?

Can someone clear something up for me?
Are there 2 plugins called Livestream and if so - what version does this post assist with?

I've been bashing my head against the proverbial brick wall today and each time I think I've cracked it, it turns out I haven't. Can we clear up this confusion please.

Last of the silly questions. I'm trying to use a stream from www.livestream.com.

Is the stream url I should use rmpt://www.livestream.com/dave - http://www.livestream.com/dave or something else which isn't documented anywhere. :)

Sorry I've jumped on this thread - seemed silly to open another with the same topic.

Documentation for connecting to www.livestream.com is here: http://developer.longtailvideo.com/trac/wiki/FlashFormats#Livestream.com

There is also a Livestream plugin for connecting to generic livestreams.

There is a lot of documentation in the Tutorials for the general user and here for developers: http://developer.longtailvideo.com/trac/

What were you missing?

What were you missing?

I'm missing confirmation about what url should be used if using www.livestream.com
Thanks for the links, but the answer just isn't there or if it is - I can't see it. For example, would a Livestream url be:
http://www.livestream.com/dave
rmtp://www.livestream.com/dave
or even just
/dave

I have to say /dave isn't the channel I want to use - I hope dave doesn't mind.

The actual url to the livestream feed, whatever it is, will eventually appear in a dynamic XML file, along with other .flv paths.
It's all working well - but it would be nice to get a live feed in that schedule too when it's wanted.
So far - I just get a livestream logo appear, but nothing else.

Seems like the Livestream pages that are linked from the JW Player Livestream.com documentation have everything you would need.

JW: http://developer.longtailvideo.com/trac/wiki/FlashFormats#Livestream.com

Livestream: http://www.livestream.com/platform/player/3rdparty/jwplayer

hobbs - ok, Thank you and understood. You can't help, whether by choice or just an inability to be helpful.

 
    ROFL

Sort of reminds me of my favorite quotation:

      "There are none so helpless as those who will not help themselves."  -anon

In the morning when the star's at its rest, you would find me at the time I love the best catching rainworms in the muddy stream and all the others can glow and never meen.
Oh yes you think that "meen" is not a word but you are mistaken for there are some people thinking drinking in their gloom knowin nothing about falling down the trees and sunder rooms searching for a meen. Yes and you say that "meen" is just no word at all, finding fault with whispering magic in the air where it is empty, empty, empty. Well now I like to hang my head getting all the shame and mist better down into the sand - feeling, reeling, rocking like the old ones used to do in the other
word- MEEN, isn't it?

This was seriously doing my head in, I just couldn't get the thing to work. The set-up was simple: using Flash Media Encoder (2.5 or 3.1) streaming to Flash Media Server (or Red 5) and JW Player version 5 to connect to it. I tried setttings that I'd used before and all those suggested in this thread. What worked for me was that mentioned (not very clearly) at http://developer.longtailvideo.com/trac/wiki/Player5Formats#Livestream.com

That says simply to use the file, provider and streamer parameters, setting:

streamer = rtmp://path.to.your.server/application (application = live for FMS default)
file = <name of your stream>
provider = rtmp

Here's what worked (obviously adjust for your set-up):

            <script type="text/javascript">
              var so = new SWFObject('mediaplayer/player.swf','mpl','340','272','9');
      so.addParam('wmode','opaque');
              so.addParam('allowscriptaccess','always');
              so.addParam('allowfullscreen','true');
      so.addParam('flashvars','&file=mylivestream&provider=rtmp&streamer=rtmp://live.mydomain.com/live');
              so.write('player');
            </script>

My stream was at rtmp://live.mydomain.com/live/mylivestream

For reference none of the following settings worked at all: type, plugins (not needed), livestream.file, livestream.streamer.

Hope that helps someone.

Thanks! needed that info