I have created the client-server application to switch streams and republish them as single continious stream to the remote server. I republish additional stream (myStream) by NetStream.publish() methode In the server-side script (main.asc).
This is fragment of the long script:
nc = new NetConnection(); nc.connect( "rtmp://remoteserver/live" ); 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("livestream", "live"); |
Unfortunately, republishing push-stream "livestream" vanishes soon in some minute after start.
Is it possible to make push stream more stable one?
Are there any methodes?