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

Forums

/

RTMP Live streaming with FMS3

28 replies [Last post]

Hi,

we are doing live streaming with FMS3. Adobe test app works ok, but JWPlayer 4.1 doesn't. I think we have something configured wrong. Our SWFobject looks like this: (we have VOD working ok on same server)

fms_server.com is the address of FMS server (replaced with bogus)
live is the name of application
live_stream_name is the name of stream.

this would equal to rtmp://fms_server.com/live/live_stream_name in adobe test swf, which works ok.

function createPlayer()
{
var so = new SWFObject('player.swf','mpl','320','240','8');
so.addVariable('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('flashvars','&file=live_stream_name&streamer=rtmp://fms_server.com/live&controlbar=over');
so.write('player');
};

any suggestions?

so.addVariable('file', 'live_stream_name');
so.addVariable('streamer', 'rtmp://fms_server.com/live');
so.addVariable('type', 'video');
so.addVariable('controlbar', 'over');

Good Luck! :)

thanks! video did the trick :)

Hi,

i am using the code

<script type="text/javascript">
var s1 = new SWFObject("player.swf","mpl","328","200","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addVariable("streamer","'rtmp://fms_server.com/live");
s1.addVariable("file","live_stream_name");
s1.addVariable("type", "video");
s1.addVariable("controlbar", "over");
s1.write("container");
</script>

when i view it in browser the Audio is comming properly but the video is not displaying

any suggestion please??

thanks

Change your code to require the Adobe Flash Player v9,0,124,0, then update your Flash Player:

var s1 = new SWFObject("player.swf","mpl","328","200","9.0.124","#FFFFFF");

"You have to be testing this online, with your HTML and player.swf coming from a http://... link, otherwise, you run into the same-origin security restriction. online files/online movie (player.swf) OR offline files/offline movie ONLY !!!" -- http://www.jeroenwijering.com/?thread=12595

You have to install web server and testing by http://..

i have changed the version but the still video is not coming

Hi Michal

i am a core designer.

i am not able to understand

thanks

Hi guys,

few questions :

I am trying similar setup and used your code to put the player on the web page, but I get no video message. I have to admit that I am far from being expert...So my questions are:

- this might be the stupid one, but - who sends the rtmp request to the FMS to get the live stream, client machine or web server? I am asking this because in the packet dump i see only http gets for the stream and I receive http not found messages. No rtmp at all..
- any hints which logs I should look at (and where)?

thanks

I got my going like this and is working %100

<script type='text/javascript' src='swfobject.js'></script>

<div id='preview'>This div will be replaced</div>

<script type='text/javascript'>
var s1 = new SWFObject('player.swf','ply','470','320','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addVariable('file', 'stream-Name');
s1.addVariable('streamer', 'rtmp://Server-IP/Application-Name');
s1.addVariable('type', 'video');
s1.write('preview');
</script>

Hi, we are testing the JW player to view a live stream at: http://freelance.server.us:8080/mediaplayer/as3/test.html

We are able to view this live stream via another player but not the JW player, can I know why is this so?

Thank you for your help

The content will only play if another player is running the live stream.

http://freelance.server.us:8080/mediaplayer/as3/test2.html

Once this page is open and video start playing.. JW player will play on the http://freelance.server.us:8080/mediaplayer/as3/test.html

Wondering why?

Hi Eileen Teo,

Did you try the code as I show it above?

how can I stream different live feed at the same time and/or a live feed and video on the same XML playlist

this is what I have as XML

<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>

<title>Video1</title>
<creator>Herbalife</creator>
<location>live_FlashLiveTest</location>
<meta rel='type'>RTMP</meta>
</track>

<track>

<title>Video1</title>
<creator>Herbalife</creator>
<location>http://www.youtube.com/watch?v=hPzNl6NKAG0</location>
<meta rel='type'>video</meta>
</track>

</trackList>
</playlist>

heres mine and wont work at all... were FMS test app works fine

<script type='text/javascript' src='swfobject.js'></script>

<div id='preview'>This div will be replaced</div>

<script type='text/javascript'>
var s1 = new SWFObject('player.swf','ply','470','320','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addVariable('file', 'livestream');
s1.addVariable('streamer', 'rtmp://192.168.1.102:1935/live');
s1.addVariable('type', 'video');
s1.write('preview');
</script>

sorry to bump this but is just tried doing a small vod and seems to work fine... just the livestream isnt working.

dear All ,
I need to watch BBC , CNN Online from my web site.I searched it all over the network to find a script or code.Pls hope eny one of u'll can help .

have a Nice Day !!

Best rgds
lahiru

how to do live streaming in JW player

i want to do live telecast of my event using FMS and jwplayer . is anybody tell me how to send client data to server .
Server is linux and the data transfer through web browser.
is encoder is reqired at client side.

my email is bindu.misra@hytechpro.com
Plz help

See these demo pages:

To send the video to the server: http://willswonders.myip.org:8082/Camera.html?type=camera

To receive the video from the server: http://willswonders.myip.org:8082/Camera.html?type=rtmp

Both on one page: http://willswonders.myip.org:8082/Camera_Player.html

i m not able to access your server

 
She's working right now, I just checked.

thanx lefTy. i have seen that. can u share with me how u develop this . im using this script can u tell me wat is tha issue in that

<script type='text/javascript'>
var s1 = new SWFObject('player.swf','ply','413','332','9','#ffffff');
embedCode=escape("<embed src='http://localhost/player/player.swf' height='332' width='413' allowscriptaccess='always' allowfullscreen='true' flashvars='image=preview.jpg&file=http//localhost/player/video.flv&plugins=viral-1'/>");

s1.addParam('allowfullscreen','true');

//s1.addParam("flashvars","file=video.flv&skin=skins-r159/skins/default/default_skin.swf&fullscreen=true&stretching=fil//l&plugins=yousearch,embed-1,viral-1&embed.code="+embedCode);

s1.addParam('flashvars','file=test00.flv&streamer=rtmp://localhost/live&autostart=true&type=camera');
s1.write('example');
</script>

Great Job Bins...

But why ur name is bins ???
Or do I spelled wrong ??

I was watching on satliveonpc.com a Premiership football game between Chelsea and Arsenal on longtailvideo. How they do to find these channels?
Thanks

 
it's all magic

I am having extreme difficulty trying to get a rtpm livestream going. Using php I am using the following code to add to the swf

$flashvars = "&width=400&height=319&streamer=rtmp://urltocdn/&file=stream_name&type=rtmp&autostart=true&dock=false";

Hi Tom,

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