[Red5] Urgent! Republishing problem

Wanderlei Junior wpajunior at hotmail.com
Wed Nov 21 12:03:25 PST 2007


Hello my friend!

No, the streams consumers (who plays the stream) should not need to close and play it again. But I think it is a good idea to close the publishing stream before call play on client who will stop to publish and start playing someone else stream. But it won't solve the problem because it is a server side bug. I change the server code and it appears to solve the problem. I'm wating for a experienced Red5 developer suggestion now and I hope it will be fixed on next release. It does not seem to be a hard to fix bug.

[]'s

Junior.


> Date: Wed, 21 Nov 2007 20:35:40 +0100
> From: adrian at adamiak.net
> To: red5 at osflash.org
> Subject: Re: [Red5] Urgent! Republishing problem
> 
> > Are you guys 100% sure all your subscribers are closing their streams?
> 
> Well, actually I never, ever close any streams. I.e. when there are
> 100 users in a chat room, they all call:
> 
> netStream.play("myroom_stream");
> 
> When one of the users wants to speak with his mic, he calls
> 
> netStream.publish("myroom_stream", "live");
> 
> when he finishes speaking, he again calls:
> 
> netStream.play("myroom_stream");
> 
> I only make sure that there is only one user publishing at any moment.
> 
> BUT, I never, ever call netStream.close()! The users just stay
> subscribed to the stream and listen to what the current publisher
> says.
> 
> This solution works perfectly with red5-0.6.2. It stopped working
> after upgrading to red5-0.6.3.
> 
> What you're saying, is that after each publishing, _everyone_ should
> call netStream.close() and then netStream.play() again? (I've tried to
> call .close() only by publisher, but it didn't help).
> 
> Thanks for any help,
> 
> Adrian
> 
> 
> 
> 
> 
> >
> > In older versions (around 0.6.2ish), when a stream stopped, if I left a
> > client subscribed, it'd start playing again when the stream was republished.
> > In newer revisions, the .publish() fires a BadName event until I close
> > the idling client.
> > I'd always assume the first happened because of a bug somewhere.
> >
> > Jason
> >
> >
> > Adrian Adamiak wrote:
> > > Hi. I seem to have the same problem as you (just posted it is as "Voice Chat
> > > problem: .publish() works only once" on this list), even though it concerns
> > > _audio_ republishing to the same stream.
> > >
> > > What is interesting, is that it works fine with red5-0.6.2, but it doesn't
> > > with red5-0.6.3
> > >
> > > Did you manage to solve your problem? If so, please share.
> > >
> > > Adrian
> > >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> 
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org

_________________________________________________________________
Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver offline. Conheça  o MSN Mobile!
http://mobile.live.com/signup/signup2.aspx?lc=pt-br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071121/67f7a666/attachment.html 


More information about the Red5 mailing list