Go
Not registered? Sign up!

Limelight Live stream

Google Translate
23 posts | return to the Setup Problems forum | get the rss feed for this thread

Oct. 29, 2008Lee

Hi

I have been looking for the definitive answer as to whether JW FLV Player version 4.2 supports live streams off the Limelight CDN. Specifically, does it support the FCSubscribe call needed to pull the stream from the origin to the flash server.

I have read that someone has made changes to the player, but I wonder if these changes are yet present in the main player.

Many thanks.

Lee

Oct. 29, 2008JeroenW

It is in there, but not tested and documented yet:

1. Set up your stream like it's a regular RTMP stream (with the 'file' and 'streamer' flashvars).
2. Add the flashvar 'subscribe=true'. That should work!

Please use the 4.2 player for this...

Oct. 30, 2008Lori

I am using the 4.2 player.

When I add the flashvar 'subscribe=true' I receive a Subscription Failed error message. If I remove subscribe it just spins.

If I use the previous player:
It just spins but if I open another browser window and login to my Limelight Exchange account and go to tools and run a sample of my live stream it works As soon as I close Limelight browser window the stream stops. I login to my Limelight account again and it starts streaming.

When I test using your set-up wizard it works the same as using the previous player. I can open another browser window with my Limelight Exchange account and your wizard starts streaming. Close the browser and the wizard stops.

The only player that works is the one that Limelight supplies but it freezes up continually. I have tested the stream using the JW FLV Player (previous version) with my Limelight account open and it runs smoothly for hours.

I have a large live event coming up and really need a stable player. If anybody has any suggestions please pass the information along. I would pay for someone to get this working.

Thanks
Lori

Nov. 11, 2008Harvey Louie

Lori and Lee,

I like you guys, am standing in line for a path to success using a JW Flash Player on both Akamai and Limelight FMS servers that require a FCsubscribe call in the player code. I have my own FMS server that JW's players work like a charm with. But I do contract encoding work on both Limelime's and Akamai's CDN where I also need to supply a player to the end client.

I haven't figure out how to do what JW suggested, include the flashvar 'subscribe=true' in a 4.2 player code to make it work.

Put me on the email list when the answer is document - Harvey@EventCG.com
I'd be happy to pass on the info to both my Akamai and Limelight Biz Dev contacts as well.

Harvey 415-987-5281

Nov. 11, 2008Lee

Hi Harvey

subscribe=true works for me - I place it in the jwplayer config file, along with the streamer and file variables, and set the config in the flashvars.

Be careful when using the LUX player as this can lure you into thinking that the JW Player is working, as the LUX player will issue the FCSubscribe such that the stream is available for successive players connecting, whether they issue the command or not.

Lee

Nov. 12, 2008Harvey Louie

Lee,

Can you spell out the lines of flashvars here for me and others to see. Or post a URL of one of your player pages so we can view the source code. Picture is worth a 1,000 words. I understand what your saying, but I just couldn't get it all to work on the 4.2 player swf. I am missing something simple - knowing you have up and going.


I have read all the forum threads and found where Sébastien Jauquet in Belgium has modified a version 3.12 JW Flash player to work with the FCsubscribe call for use with Limelight and Akamai.

http://www.jeroenwijering.com/?thread=6491#msg57071

I have used his player.swf file and used it in my test player page, and I have it working with my Akamai account with success.

http://eventcompressiongroup.com/samples/live/flash/akamai_400_300_live.htm

You will need to download a copy of Sébastien SWF file from here...
- http://www.epp-ed.eu/live/sebplayer.swf
or here
- http://www.eventcompressiongroup.com/jw-flv/akamai/player.swf

If I stop the encoder stream, the player will break and not keep seeking the stream. Other JW players keep seeking, which is what I want as all the production work I do are for live event streams.

Harvey@EventCG,com

Nov. 12, 2008Lee

Hi Harvey

I don't have any links to give, but as an example, the HTML is:

<html><head><title></title></head><body>
<div id="container"></div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject('player.swf', 'mpl', '470', '290', '9');
so.addVariable('config', '/path/to/config/file.xml');
so.write('container');
</script>
</body></html>


and the config file is:


<?xml version="1.0" encoding="utf-16"?>
<config>
<streamer>rtmp://xyz.fcod.llnwd.net/aNNNN/XN/</streamer>
<file>mp4:a/video/file.mp4</file>
<type>video</type>
</config>

Nov. 13, 2008Harvey Louie

Lee,

Thanks, I will have to try out the above code. I assume you are using JW's swobject.js related to his 4.2 player? I would love to host a sample page using you code (along with associate files) to see if its works for me. I like the idea of using an external config file to load the player.

I did get support from my friend inside Akamai. Here is a sample of a Live Flash Player that works with the FCSubsribe call.

http://eventcompressiongroup.com/samples/live/flash/Akamai-Player.htm

Its not a pretty player, but functional to get a novice up and running. I imagine it works with Limeline. I'll have to try it using one of my partner's accounts.

I have wizard at this URL that Akamai supplied me with to create the above player. One simply has to point at the SWF file, once that person has a copy hosted up on their own domain.

Harvey@EventCG.com

Nov. 18, 2008Bill P.

Harvey,

Thanks very much for posting that Akamai Flash player. It saved me a lot of time today. Though not as nice as the JW player, it does what I need it to do--stream flash live from Akamai and allow full-screen mode. Hopefully a future version of JW Player will make this easier.

Bill

Dec. 11, 2008Bill B.

For what it's worth, I was able to get the 4.2 player working with Limelight with minimal issues with a live stream.

Here's my embed code:

<script type="text/javascript">
var so = new SWFObject('player.swf','mpl','400','300','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&streamer=rtmp://xxxxx.fc.llnwd.net/xxxxxv&file=[streamname]&subscribe=true&height=300&width=400&image=logo1.png&type=video');
so.write('player');
</script>

Dec. 12, 2008DS

re: "Subscription Failed"

Hi All,

I've been struggling with trying to connect to Akamai for a few days now and I think I finally have been successful.

I, like Lori, was getting the "Subscription Failed" error when I added the 'subscribe=true'. Finally, I think I solved the problem by *NOT* including the ".flv" on the filename (which seems to cause a 2023 error - or something like that - when it's not included normally).

Below is the code I use to connect to Akamai with JW4.2 and swfobject 2.1 (it also includes code I use to provide a 'Get Flash' message if they don't have it, and the object tag notation if they don't have JS turned on):



<div style="border: 1px solid #000; position: relative; width: 100%; padding: 0; width: 508px ;height: 382px ;background: url(/images/logos/local_Horizontal_4Colour_JPG.jpg) no-repeat ;"
id="video1" class="videoplayer">
<div class="box_background" style="background-color: white;height: 100%;filter:alpha(opacity=80); /* IE's opacity*/left: 0px;opacity: 0.80;position: absolute;top: 0px;width: 100%;z-index: 99;"></div>
<div class="box_contents" style="background-color:transparent;height: 100%;position: relative;width: 100%;z-index: 101; text-align:center;">
<br />

<br />
<h3 >You require the Flash plugin to see this video.</h3>
<a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_adobe_flash_player.png' alt='Get Adobe Flash player' style="border:none" /></a>

</div>


<script type='text/javascript' src='/media/video/js/swfobject_2_1.js'></script>
<script type='text/javascript'>
var flashvars = {
file:'StreamName@5678',
image:'/images/logos/local_Horizontal_4Colour_JPG.jpg',
skin:'/media/video/skins/localskinstream.swf',
logo:'/media/video/images/logos/localCopyright.png',
controlbar:'bottom',
quality:'true',
volume:'50',
type:'video'
,streamer:'rtmp://cp12345.live.edgefcs.net/live/'
,subscribe:'true'
}
var params = {
allowfullscreen:'true',
allowscriptaccess:'always'
}
var attributes = {
id:'videoplayer1',
name:'videoplayer1'
}
swfobject.embedSWF('/media/video/player.swf',
'video1',
'508',
'382',
'9.0.115',
'/media/video/videos/expressInstall.swf',
flashvars,
params,
attributes);
</script>
<noscript>
<object id='videoplayer1' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='508' height='382'>

<param name='movie' value='/media/video/player.swf' />
<param name='allowfullscreen' value='true' />
<param name='allowscriptaccess' value='always' />
<param name='wmode' value='opaque' />
<param name='flashvars' value='subscribe=true&file=StreamName@5678&image=/images/logos/local_Horizontal_4Colour_JPG.jpg&skin=/media/video/skins/localskinstream.swf&logo=/media/video/images/logos/localCopyright.png&controlbar=bottom&quality=true&volume=50' &streamer=rtmp://cp12345.live.edgefcs.net/live/&subscribe=true
' />
<!--[if !IE]>-->
<object type='application/x-shockwave-flash' data='/media/video/player.swf' width='508' height='382'>
<param name='allowfullscreen' value='true' />
<param name='allowscriptaccess' value='always' />
<param name='wmode' value='opaque' />
<param name='flashvars' value='subscribe=true&file=StreamName@5678&image=/images/logos/local_Horizontal_4Colour_JPG.jpg&skin=/media/video/skins/localskinstream.swf&logo=/media/video/images/logos/localCopyright.png&controlbar=bottom&quality=true&volume=50&streamer=rtmp://cp12345.live.edgefcs.net/live/&subscribe=true
' />
<!--<![endif]-->
<a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_adobe_flash_player.png' alt='Get Adobe Flash player' /></a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->

</object>

</noscript>


</div>


Dec. 21, 2008Abel Aranda

Hi, i probe this example and works in internet exporer and firefox but in a mac with safari don´t work

any ideas

Thanks

Dec. 21, 2008Abel Aranda

sorry in mac with safari works.

I tested this player for iphone but i don´t have an iphone.

Thanks

Jan. 09, 2009CactusCoder

We had a similar issue with the 4.3 player where the player wouldn't display the live stream.

The first step in making it work for us was to set the type flashvar to flv instead of video. This made the connection to the RTMP server succeed.

Next we got the error Video not found. This is caused by the player incorrectly trying to play a video instead of an rtmp stream. (it is selecting the wrong model)

I have been unable to fix this 'properly' due to my very limited ActionScript experience - my workaround solution is to build a special version of the player (I call it streamplayer) with one change applied to private function loadModel in com/jeroenwijering/player/Model.as:

replace

case 'video':
models[typ] = new VideoModel(this);
break;


with


case 'video':
models[typ] = new RTMPModel(this);
break;


Hope this helps :-)

Jan. 10, 2009CactusCoder

I was able to fix the problem properly this morning :-)

Instead of the above change, build the player with the following change:

In com/jeroenwijering/player/Controller.as, private function getModelType()
change

if((itm['type'] == 'video' || ext) && itm['streamer']) {

to

if((itm['type'] == 'video' || itm['type'] == 'flv' || ext) && itm['streamer']) {


With this change the player will stream live streams from Limelight.

Note that you still need to set the type flashvar to flv to make this work.

Mar. 01, 2009Aquagraphite

The fix mentioned by CactusCoder works great but wont work for 4.4 - its got a new and what would appear to be a refined version of getModelType.

Jun. 10, 2009guytom

Is there a version that fixes this issue?

Jun. 10, 2009Blop

Check here: http://developer.longtailvideo.com/trac/wiki/FlashFormats#Streamingservers

There are specific types for the major CDNs, including Limelight.

You'll probably want to get a v4.5.218 player to make sure that this is supported.

http://developer.longtailvideo.com/trac/log/trunk/as3/player.swf?rev=219

Jun. 10, 2009guytom

Unfortunately not for Akamai...

I actually got their live stream to work on 4.4 but .... only after it starts in another player on my computer (flowplayer) otherwise it just keeps buffering.
I can't find around here a clear explanation so if you have one i'll be thankful...

Jun. 10, 2009guytom

My bad, type=fcsubscribe resolved the problem for us as well although it's Akamai
JW - I suggest you document Akamai as well

Aug. 04, 2009Jason

- to guytom

So you have gotten StreamOS to work with version 4.4? Could you tell me how you did this? I have gotten it to work in 4.3 but am having compatibility issues with some plugins. Could you post your source?

Thank you so much!

Sep. 04, 2009PajE

Hello..

anyone knows if it works with version 4.5 ?
seems not to work on the setup wizard page ("subscription failed").
I don't know if it could come from the mediavault parameters ?

Thx

Nov. 01, 2009KnightHawk

anyone have this working with limelight's media vault tokens...
Where the file param in theory would like like this

"streamname?ip=x.x.x.x&h=3413241324132413214

Issues seems to be that limelight wants the subscribe call to use just "streamname", but then on the nc.play call to foward the full string with the params and hash code.


Nevermind I got this working:
Remember you have to encode the ? = and & 's before feeding it to the player.

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.