Copy link to clipboard
Copied
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
for anyone looking for an answer...
I found that FMS was not looking for the given stream name "external-stream" rather it was looking for " *flv:external-stream"
was adding *flv: onto the stream name...once the stream name was changed to *flv: in flussonic, it was a cakewalk
Thanks
Copy link to clipboard
Copied
Not sure if it will work for you but pushing from Flussonic to FMS 3.5 was a cakewalk.
Copy link to clipboard
Copied
for anyone looking for an answer...
I found that FMS was not looking for the given stream name "external-stream" rather it was looking for " *flv:external-stream"
was adding *flv: onto the stream name...once the stream name was changed to *flv: in flussonic, it was a cakewalk
Thanks