Copy link to clipboard
Copied
I have a problem with stability of the Multi-point publishing of my stream.
I send the stream1 to the server application "livestreams" -
application.onPublish = function(client, myStream) {
trace(myStream.name + " is publishing into application " + application.name);
if (application.name == "livestreams/_definst_"){
nc = new NetConnection();
nc.connect( "rtmp://localhost/livestream" );
ns = new NetStream(nc);
ns.onStatus = function(info) {
trace("Stream Status: " + info.code)
if (info.code == "NetStream.Publish.Start") {
trace("The stream is now publishing");
}
}
ns.setBufferTime(2);
ns.attach(myStream);
ns.publish(stream2, "live" );
}
}
My flash player plays this stream2 from server application "livestream" during 2-5 minuts, and stream2 vanishes.
Is there methode provides stability of the Multi-point publishing?