Skip to main content
Inspiring
March 29, 2015
Answered

Flussonic to FMS relay/re-stream not working!

  • March 29, 2015
  • 1 reply
  • 1068 views

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 has been closed for replies.
Correct answer kaka2kool

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

1 reply

Participant
April 1, 2015

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

kaka2koolAuthorCorrect answer
Inspiring
April 1, 2015

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