Create Flash Client app (swf) to access Red5 server app.
HERE IS THE CODE:
import flash.net.NetConnection;
import flash.net.Responder;
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://localhost/testapp");
nc.addEventListener(NetStatusEvent.NET_STATUS, netConnectionHandler);
nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
var nr:Responder = new Responder(netResponderHandler);
nc.call("add", nr, 2, 3);
function netConnectionHandler(evt:NetStatusEvent)
{
trace("status: " + evt.info.code);
}
function securityErrorHandler(evt:SecurityErrorEvent):void {
trace("securityErrorHandler: " + evt);
}
function netResponderHandler(serverResult:Object)
{
trace("The result is " + serverResult);
}
i've got an existing error:
Closing RTMPMinaConnection from 127.0.0.1 : 2394 to localhost (in: 3330 out 3258 ), with id 15365781 due to long handshake
can you tell me what you wrote in xml and properties files? Thanks
tipasergio 1 week ago
cant make one video for streaming a webcam from you red5 server?
alquisira 1 month ago in playlist Install Red5 on Windows (w/o plugin)
copying above code wont work cos he did not import the necessary classes
import flash.events.*;
webdezzi 1 year ago
"if it doesn't work, restart your computer" .. let me guess, you are a Windows developer, right?
rszemeti 1 year ago
thanks for the code :)
ThiliRocks 1 year ago
Hi, great video.
Is this the last one for now?
Thanks, Peter
thesearchmaker 2 years ago