Flussonic to FMS relay/re-stream not working!
Hi folks,
I am trying to relay/re-stream a stream which is on a Flussonic server, and I'm using this code
{
nc1 = new NetConnection();
myStream1 = Stream.get("localstream"); // "foo" is name of stream which would be relaying "livestream"
myStream1.onStatus = function(info){
trace("ns info " + info.code);
}
nc1.onStatus = function(info){
trace("netconn info " + info.code);
if(info.code == "NetConnection.Connect.Success"){
myStream1.play("external-streamname",-1,-1,true,nc1); //"livestream" is name of stream which is getting published at remote server, -1 for live stream
}
else if(info.code == "NetConnection.Connect.Closed" || "NetConnection.Connect.Failed"){
nc1.connect("rtmp://flussnoic-server-ip:1935/static/");
}
}
nc1.connect("rtmp://flussnoic-server-ip:1935/static/"); // no need to specify "_definst_"
}
But I keep getting the following error in admin logs
netconn info NetConnection.Connect.Success
ns info NetStream.Publish.Start
ns info NetStream.Play.Reset
ns info NetStream.Play.Stop
ns info NetStream.Unpublish.Success
netconn info NetConnection.Connect.Closed
