Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 290743

Push-stream stability problem

$
0
0

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?



Viewing all articles
Browse latest Browse all 290743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>