FMS auto check/trigger connection for clients
Hi:
This is my second request since last time I have got huge help form SE_0208, thanks man, thanks forum!
I am using FMS accept a RTMP stream from Wowza and played by Flash player, steps like:
1.Wowza publish rtmp stream. (very stable can be played by Flash players 7*24 hours.)
2.Instruct FMS accept rtmp stream:
a. create application folder named “Live2”
b. copy all files form install dir\samples\applications\live
c. enter server codes into main.asc
var nc;
var myStream;
application.onAppStart = function(){
nc = new NetConnection();
myStream = Stream.get("foo");
nc.onStatus = function(info){
if(info.code == "NetConnection.Connect.Success"){
myStream.play("livestream",-1,-1,true,nc);
}
}
nc.connect("rtmp://www.remotertmpserver.com:1935/live");
}
3. reload application, FMS can publish correctly.
Problem is that FMS publishing always goes down, clients connected in LAN within Giga speed, Wowza output rtmp stream is very stable and
can be played by Flash players 7*24 hours.Only one thing need to do is by single click the button :‘’Reload this application” in the fms_admin
Console, then everything will be ok, FMS can resume for publishing.
Guys, I have lots thing to do and can’t setting in fort of the FMS server all day to monitor.
Any way I can do to make FMS auto check/trigger connection for clients instead of manual clicking “Reload this application” ?
Thanks advance![]()
