Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Hi,
I forgot to mention that I am using only RTMP connection.
regards.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
application.ns
application.nc
}
application.i = 0;
}
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Please, could you post your application source code?