Skip to main content
Known Participant
June 11, 2013
Question

Multipoint publishing Stream Stop issue

  • June 11, 2013
  • 3 replies
  • 2347 views

Hi,

     I am creating a application in which I am using Multipoint Publishing between the servers. I am using four Flash Media Servers for streaming. But after some time the stream stops publishing between the server appoximately after  5-7 minutes. All servers are developement servers.

Please reply if anyone know the solution.

warm regards.

This topic has been closed for replies.

3 replies

Participating Frequently
September 26, 2014

You can try this code, it works like a charm

application.i = 0;

application.nc = new Array();

application.ns = new Array();

...

application.onPublish = function(client, myStream) {

  trace(">>>> starting onPublish");

  if (application.name == "<APPNAME>/_definst_"){

  application.nc[index] = new NetConnection();

  application.nc[index].connect("<URL>");

  application.ns[index] = new NetStream(application.nc[index]);

  application.ns[index].onStatus = function(info) {

  if (info.code == "NetStream.Publish.Start") {

  trace("The stream is now publishing");

  }

  }

  application.ns[index].setBufferTime(2);

  var isAttached = application.ns[index].attach(myStream);

  if (isAttached) {

  application.ns[index].publish(myStream.name, "live");

  } else {

  trace(myStream.name + " is not attached");

  }

  application.i = application.i + 1;

  }

  trace(">>>> ending onPublish");

}

...

application.onUnpublish = function( client, myStream ) {

  var streamName = myStream.name;

  for (j = 0; j<application.i; j++) {

  application.ns.publish(false);

  application.ns.attach(false);

  application.nc.close();

  }

  application.i = 0;

}

Participant
December 5, 2014

I can also replicate this issue in AMS 5.0.6 both dev and licensed. The threshold seems to be about 1.5 to 5 minutes of multistream republishing. I don't see any errors in the core logs relating to limits, but I do see this issue:

2014-12-05 13:51:18 8652 (e)2581279 Assert failed in .\core\FcLiveStream.cpp line 4303 -
2014-12-05 13:52:46 8652 (i)2581247 Core (8652) disconnected from edge. -

I'd love to know if this is something server code related before I rework my republishing app.

Participating Frequently
December 8, 2014

Please, could you post your application source code?

Participant
July 7, 2014

I too am having this issue with AMS 5 professional. Any idea how to keep the republished streams alive for the entire length of the streaming event?

June 11, 2013

Hi Arvind,

If you're using Adobe Media Server starter (without license) then recording will stop after 10 min and error will be logged in your core logs. If you want to continue recording for longer than 10 minutes you'll have to buy a serial key.

Hope this helps.

Thanks,

Apurva

Known Participant
June 11, 2013

Thanks Apurva for quick reply,

                              But when I use only two FMS servers for Multipoint publishing and both are starter servers then there is no such issue. Please explain little bit more if u can.

Regards

Known Participant
June 11, 2013

Hi,

   I forgot to mention that I am using only RTMP connection.

regards.