As far as I know, NetStream.Play.Paused is not returned for
Progressive download flv's. Only for FCS Streaming video. I usually
use a Boolean value that is toggled when either playback begins or the
user clicks the pause/play buttons, or the video is buffering. Seems
to work for me.
On 1/13/06, Corban Baxter <[EMAIL PROTECTED]> wrote:
>
> Hey guys I am building a flv player for one of our sites. The way I
> designed it is when the video is playing a pause button appears and if
> the video is paused or stopped a play button appears. All I am trying to
> do is move two movieclips around according to the situation. Below is my
> code of how I thought it would work except I know that doing
> if(info.code == "NetStream.Play.Paused")returns nothing cause the status
> is never paused nor does it change to stop when ns.pause(); is done.
> What can I do to get this to work? Any ideas? Thanks!
>
>
> ns.onStatus = function(info) {
> trace(info.code);
> if(info.code == "NetStream.Buffer.Full") {
> bufferClip._visible = false;
> }
> if(info.code == "NetStream.Buffer.Empty") {
> bufferClip._visible = true;
> }
> if(info.code == "NetStream.Play.Stop") {
> ns.pause();
> playButton._x = 316;
> playButton._y = 118;
>
> pauseButton._x = 500;
> pauseButton._y = 118;
> //ns.seek(0); //replay video
> }
> if(info.code == "NetStream.Play.Start") {
> playButton._x = 500;
> playButton._y = 118;
>
> pauseButton._x = 316;
> pauseButton._y = 118;
> }
>
> if(info.code == "NetStream.Play.Paused") {
> playButton._x = 316;
> playButton._y = 118;
>
> pauseButton._x = 500;
> pauseButton._y = 118;
> }
>
> }
>
>
> corban
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders