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
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
