On 6/15/06, Rodrigo Ordonez Licona <[EMAIL PROTECTED]> wrote:
Hi,
 
Excellent product RED5 is a great idea, we have it working on two Linux Machines,
 
We have a simple question(we think), we are using the simple broadcaster and simple subscriber to broadcast radio,
 
However from time to time the broadcaster BREAKS the connections, probably internet provider, CPU utilization, dont think is red5 related as a stream has lasted over 20 hours without failure.
 
then to REESTABLISH CONNECTION
a)the broadcaster has to disconnect and then reconnect
b)the clients (simple suscribers) have to disconnect and reconnect

Yep, in theory, Red5 should send out the status when the connection is disposed, which is the behaviour by FCS/FMS. We will add this (more status report for streaming) on 0.5 release.

We would like to implement some feature to check, whether the stream is working and disconnect and reconect if necessary (probably show a buffering icon or something) and execute every 10+random  seconds or so to check availability.
 
this listeners seem to do the work but we have no idea of how to query the listeners (which might not exist as the connection might be dropped).
 
stream.addEventListener("status", Delegate.create(this, status));
stream.addEventListener("error", Delegate.create(this, error));
 
this is what we have in mind, hope it makes some sense...
=====

private function checkavail(evtObj:Object):Void

{

if (stream.status==null) {//no sure how to query

stream = new Stream(evtObj.connection);//should it be recreated
stream.attachAudio(mic);
stream.publish("radiostation", "live");//changed red5StreamDemo to publish several streams with different names

}

 

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org





--
Best Regards
Steven Gong
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to