Skip to main content
Known Participant
Jun 11, 2013 10:32 AM UTC
Question

Multipoint publishing Stream Stop issue

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 is closed to new replies. Start a new post to keep the conversation going.

7 replies

Participating Frequently
Sep 26, 2014 2:32 PM UTC

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;

}

Translate
Participant
Dec 5, 2014 9:34 PM UTC

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.

Translate
Participating Frequently
Dec 8, 2014 6:19 PM UTC

Please, could you post your application source code?

Translate
Participant
Jul 7, 2014 6:47 PM UTC

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?

Translate
Jun 11, 2013 12:09 PM UTC

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

Translate
Known Participant
Jun 11, 2013 1:10 PM UTC

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

Translate
Known Participant
Jun 11, 2013 1:21 PM UTC

Hi,

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

regards.

Translate