Go
Not registered? Sign up!

Livestream Plugin

Google Translate
24 posts | return to the Plugins forum | get the rss feed for this thread

Sep. 29, 20095h4rk

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!

Sep. 29, 2009lost

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=

Sep. 29, 20095h4rk

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"?

Sep. 29, 2009lost

 
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".

Oct. 05, 20095h4rk

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

Oct. 06, 20095h4rk

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..."

Oct. 06, 2009lost

 
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');
so.addVariable('streamer','rtmp://123.45.678.901/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.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.

Oct. 06, 20095h4rk

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)

Oct. 06, 2009lost

 
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>

Oct. 06, 20095h4rk

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

Oct. 06, 2009lost

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

What type of RTMP server are you using?

Oct. 07, 20095h4rk

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

Oct. 09, 2009Ethan LongTail

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

Oct. 19, 2009Ciprian

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.

Oct. 20, 2009Spriar

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.

Oct. 21, 2009bastiaaaan

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?

Oct. 25, 2009Zachary Ozer

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.

Oct. 26, 2009bastiaaaan

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?

Oct. 26, 2009The_Shopkeeper

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. wink

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

Oct. 26, 2009hobbs

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?

Oct. 26, 2009The_Shopkeeper

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.

Oct. 26, 2009hobbs

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

Oct. 27, 2009The_Shopkeeper

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

Oct. 27, 2009hobbs

 
    ROFL

Sort of reminds me of my favorite quotation:      "There are none so helpless as those who will not help themselves."  -anon

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? 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.