Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Streaming to Red5 RTMP embed problem


Hi there, I just recently installed the Red5 RTMP server and was trying to setup JW Player to broadcast and publish. I'm using the following code from the documentation file:

<div id='container'>The player will be placed here</div>

<script type="text/javascript">
var flashvars = {
file:'livepresentation',

streamer:'rtmp://oenza.com/oflaDemo/'
};

swfobject.embedSWF('player.swf','container','480','270','9.0.115','false', flashvars,

{allowfullscreen:'true',allowscriptaccess:'always'},
{id:'jwplayer',name:'jwplayer'}

);
</script>

but when I try to view the page at http://oenza.com/jwplayer all I get is "The player will be placed here". Any idea what I'm doing wrong?

9 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

The issue here is that you are using swfobject, but you are not referencing the file “swfobject.js” anywhere on your page. That is your issue…

JW Player

User  
0 rated :

Where should I put that reference at?

JW Player

User  
0 rated :

I tried adding these two lines of code but it's still not working:

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

JW Player

User  
0 rated :

I used the Wizard and generated this code:

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='470' height='290' id='single1' name='single1'>
<param name='movie' value='player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='wmode' value='transparent'>
<param name='flashvars' value='file=stream&streamer=rtmp://oenza.com/oflaDemo&autostart=true'>
<embed
type='application/x-shockwave-flash'
id='single2'
name='single2'
src='player.swf'
width='470'
height='290'
bgcolor='undefined'
allowscriptaccess='always'
allowfullscreen='true'
wmode='transparent'
flashvars='file=stream&streamer=rtmp://oenza.com/oflaDemo&autostart=true'
/>
</object>

The player is showing up but it can't seem to connect to my "oflaDemo" for Red5 streaming, any idea what the problem may be? O.o

Ethan Feldman

JW Player Support Agent  
0 rated :

Right now I see that it is just spinning but not doing anything. You need to make sure that everything is setup correctly on Red5 (note, we don’t officially support Red5 – http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12535/video-delivery-rtmp-streaming)

JW Player

User  
0 rated :

Do you know where I could get support? LongTail says they don't support Red5, and Red5 says they don't support LongTail :( And it seems to connect just fine, take a look at http://oenza.com/jwplayer. The video stream plays fine, but in the JWPlayer guide it says just to change the filename to something without an extension to stream. I changed the filename to "livepresentation" but it just spins, since the streaming video works fine, then that must mean the rtmp server is working but I'm doing something wrong with the JW Player code?

Here is the complete code below, the only difference is I changed the file name to "livepresentation":

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='470' height='290' id='single1' name='single1'>
<param name='movie' value='player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='wmode' value='transparent'>
<param name='flashvars' value='file=avatar.flv&streamer=rtmp://oenza.com/oflaDemo&autostart=true'>
<embed
type='application/x-shockwave-flash'
id='single2'
name='single2'
src='player.swf'
width='470'
height='290'
bgcolor='undefined'
allowscriptaccess='always'
allowfullscreen='true'
wmode='transparent'
flashvars='file=avatar.flv&streamer=rtmp://oenza.com/oflaDemo&autostart=true'
/>
</object>

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='470' height='290' id='single1' name='single1'>
<param name='movie' value='player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='wmode' value='transparent'>
<param name='flashvars' value='file=livepresentation&streamer=rtmp://oenza.com/oflaDemo&autostart=true'>
<embed
type='application/x-shockwave-flash'
id='single2'
name='single2'
src='player.swf'
width='470'
height='290'
bgcolor='undefined'
allowscriptaccess='always'
allowfullscreen='true'
wmode='transparent'
flashvars='file=livepresentation&streamer=rtmp://oenza.com/oflaDemo&autostart=true'
/>
</object>

JW Player

User  
0 rated :

@Ethan

Could this be a possible cross-domain issue?

1st video plays, 2nd video seems to be looking 3rd video tells me to get flash installed

Hmmmmmmmmmmmmm

JW Player

User  
0 rated :

Perhaps I misunderstood something, with JW Player, after installing the flash media encoder, can I just go to the website and use the JW Player to stream or does it only work with me streaming from FME and subscribing with JWPlayer?

Ethan Feldman

JW Player Support Agent  
0 rated :

@Willie Meier – Crossdomain issues do no apply to RTMP.

@Chen – You need to make sure it is set up, and after that…read this tutorial, it explains how to set it up – http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12535/video-delivery-rtmp-streaming

This question has received the maximum number of answers.