Replying to myself again:
it seems that i've got it running with this:
public void streamBroadcastClose(IBroadcastStream stream) {
log.debug("streamBroadcastClose llamado:"+ stream.getPublishedName
());
ProviderService ps=new ProviderService();
ps.unregisterBroadcastStream(Red5.getConnectionLocal().getScope(),
stream.getPublishedName());
}
but anyway i still think that this should be done somehow automaticly by the
server... idk if Red5 isn't supposed to do it or it is a bug (pretty strange
that it sometimes do it and sometimes doesn't).
On 11/23/06, Storm <[EMAIL PROTECTED]> wrote:
Well, i've been trying a few things and this is what i've found:
When a client disconnects the stream is closed properly (i'm logging the
calls to streamBroadcastClose() in my application) but sometimes that stream
will be returned by getBroadcastStreamNames( conn.getScope()) method when
other clients call it.
Browsing the API and the source code i've found public boolean
unregisterBroadcastStream(IScope scope, String name) method... i supposed
that this kind of thing was done "automatic" qhen you close a stream. Isn't
it?
How can I be sure that every stream clients close are "unsuscribed" so
then no longer returned by getStreamNames?
PLEASE i need some serious help with this... will pay beer for help!
On 11/22/06, Storm <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I'm having a disturbing problem/bug, i'm calling a method from a client
> to get the list of broadcasted streams (as fitcDemo does, in fact it's the
> same method)
>
> public List<String> getStreams() {
> IConnection conn = Red5.getConnectionLocal();
> return getBroadcastStreamNames(conn.getScope());
> }
>
> well, it happens that this is returning streams from already disconected
> clients...what do i have to do to notify the disconection? I mean...when a
> client disconnects i close the connection and call publish(false) for its
> stream...Am I missing something?
>
> Thanks in advance, any help is appreciated.
> (BTW: the app i'm programming will be open for anyone to share)
>
> --
> -------------------------------------------------------------------
> "Nos gusta los domingos ir al parque a pinchar los globos de los niños
> para verlos llorar" .- Eskorbuto
--
-------------------------------------------------------------------
"Nos gusta los domingos ir al parque a pinchar los globos de los niños
para verlos llorar" .- Eskorbuto
--
-------------------------------------------------------------------
"Nos gusta los domingos ir al parque a pinchar los globos de los niños para
verlos llorar" .- Eskorbuto
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org