you probably have tried this but what happens if you don't pause or close
but just try to play another stream?

On Sun, Jul 6, 2008 at 4:43 PM, Barry Hannah <[EMAIL PROTECTED]> wrote:

> It's mentioned by plenty of people here:
> http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/ht
> ml/wwhelp.htm?context=Flash_MX_2004&file=00001594.html<http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001594.html>
>
> here:
> http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Ma
> cromedia_Flash/Q_23515050.html<http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_23515050.html>
>
> here:
> http://forum.lighttpd.net/topic/72358
>
> none of which have answers that work.
>
> I could cast the sound onto a separate object and mute it, so that you
> don't see or hear any ill effects, but my proxy tells me the flv is
> still downloading, so if one of my clients users clicks on 10 video
> clips their connection will crawl to a halt.
>
> Anyone?
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Steven
> Sacks
> Sent: Sunday, 6 July 2008 9:41 a.m.
> To: Flash Coders List
> Subject: Re: [Flashcoders] Netstream fails to close
>
> The only bug with NetStream that I know of is if you're spamming it with
>
> new streams too quickly.  The solution is to throttle the requests.
>
> A safe time to wait between changing the streams is 250ms.
>
> It's really simple to write a queueing system that does this.  You just
> overwrite the same variable and reset the timer.
>
> var currentStream:String;
> var timer:Timer = new Timer(250, 1);
> timer.addEventListener(TimerEvent.TIMER, onTimerEvent);
>
> function queueNewStream(value:String):void
> {
>    currentStream = value;
>    timer.reset();
>    timer.start();
> }
>
> function onTimerEvent(event:Event):void
> {
>    netStream.pause();
>    netStream.close();
>    netStream.load(currentStream);
> }
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Scanned by Bizo Email Filter
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to