Skip to main content
Inspiring
Mar 29, 2015 3:43 PM UTC
Answered

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

This topic is closed to new replies. Start a new post to keep the conversation going.
kaka2koolCorrect answer
Inspiring
Apr 1, 2015 5:47 PM UTC

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

2 replies

Participant
Apr 1, 2015 5:44 PM UTC

Not sure if it will work for you but pushing from Flussonic to FMS 3.5 was a cakewalk.

Translate
kaka2koolAuthorCorrect answer
Inspiring
Apr 1, 2015 5:47 PM UTC

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

Translate