Open GoogleCodeExporter opened 9 years ago
I am having the same issue where ERROR:Could not connect to:
rtmp://127.0.0.1/red5recorder/. I need to be able to change the localhost ip =
127.0.0.1 to point to server ip.
My guess i we need to edit the red5recorder.as in Flash and we need to edit
this line:
if(Application.application.parameters.server!=null) myRecorder.server=
Application.application.parameters.server;
and set myRecorder.server="rtmp://your-server-ip/red5recorder"
change to
if(Application.application.parameters.server!=null) myRecorder.server=
"rtmp://your-server-ip/red5recorder";
assuming red5recorder in webapps folder as webapps/red5recorder.
Then compile the red5recorder.as and create a new red5recorder.swf.
Original comment by chandrap...@gmail.com
on 26 Oct 2011 at 6:28
Hi,
Thanks for your reply.
What I can't find out is if I can fully import the project in Flash and just
recompile it.
There are no docs about this, would be nice to have some information about this.
Original comment by yamakasi...@gmail.com
on 27 Oct 2011 at 9:09
hey, no need to recompile the as file - you can use FlashVars:
http://stackoverflow.com/questions/7479015/red5-recorder-not-working
quote from there:
ERROR:could not connect to the server rtmp://127.0.0.1 is caused by
if(Application.application.parameters.server!=null) myRecorder.server=
Application.application.parameters.server;
which defaults to nc.connect(myRecorder.server) which returns
127.0.0.1/red5recorder
In order to get around this, you can pass along the server= FlashVar.
Edit red5recorder.html and add this in the appropriate place (after line #91):
"FlashVars", "server=rtmp://your.external.server.ip/red5recorder"
This is because the swf is downloaded and run client side, and needs to connect
to your server's RTMP service. It can't connect to 127.0.0.1/red5recorder
because that's your PC. This is why you set the server= paramerter. :-)
I hope that helps.
answered Jan 16 at 2:26
Atir Javid
Original comment by david.av...@gmail.com
on 27 Dec 2013 at 12:58
Original issue reported on code.google.com by
yamakasi...@gmail.com
on 27 Sep 2011 at 7:31