Hello,
I am trying to establish a flash based webcast system using FMS.
I installed FMS 2 on a Gentoo Linux (I had to modify the installation
procedure since this distribution is a priori not compatible with FMS). I
started FMS 2 successfully.
I constructed a "broadcaster" SWF that lets the user connect to the FMS then
start broadcasting.
Through a Windows computer connected to the network, I could login to FMS 2
through the fms_console. However, I could not establish a connection to the FMS
2 server through the "broadcaster" app running on the Windows PC.
Here is the relevant Actionscript of the broadcaster app:
--------------------------------
connect_pb.onRelease = function(){
if(this.label == "Connect"){
status_txt.text += "Connecting..." + newline;
this.label = "Disconnect";
nc.connect("rtmp://192.168.1.105/myliveapp);
} else {
status_txt.text += "Disconnecting." + newline;
this.label = "Connect";
nc.close();
}
}
nc = new NetConnection();
nc.onStatus = function(info) {
status_txt.text += "NC.onStatus> info.code: " + info.code + newline;
if (info.code == "NetConnection.Connect.Success") {
status_txt.text = "Connected to " + this.uri + newline;
startstop_pb.enabled = true;
createNetStream(this);
}
}
createNetStream = function(nc){
ns = new NetStream(nc);
ns.onStatus = function(info) {
status_txt.text += "NS.onStatus> info.code: " + info.code + newline;
}
mycam = Camera.get();
mycam.setQuality(25600, 0);
mymic = Microphone.get();
mymic.setRate(11);
ns.attachVideo(mycam);
ns.attachAudio(mymic);
myvid.attachVideo(mycam);
}
----------------------
The application works when FMS2 is installed locally, on the Windows PC. A
connection is successfully established, and a streaming webcam video appears.
I made sure to open all ports (1935) and cancel firewall protection. But it
still won't work.
Any suggestions?
Thanks for your help!!