Macromedia Flash Server - Re: NetStream.Play.Stop not triggered with progressive

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > June 2005 > Re: NetStream.Play.Stop not triggered with progressive





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: NetStream.Play.Stop not triggered with progressive
adam

2005-06-15, 7:45 am

Hi Stefan,

sounds like you could be experiencing something simular my problem, can you
trace the ns.time & ns.duration in an onEnterFrame to be sure they equal
each other at the end of playback? perhaps your ns.time never reaches the
ns.duration, in which cause you wont get a play.stop or buffer.empty which
was exactly my problem as i needed those to continue my process.

i did work around this problem in what seems to be a fairly trustworth
solution.

to access duration if you are unfamiliar, you would create your ns and
assign the metadata to it like so:

function setMetaData(o)
{
this.duration = o.duration;
}

nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns["onMetaData"] = setMetaData;

then in an onEnterFrame or interval u could trace your ns.time & ns.duration
to validate file is ok or not.

if you are interested in how i worked around the intermittant bad flv issue,
let me know and ill post the code.

-adam







----- Original Message -----
From: "Stefan Richter" <stefan-fMeCE+ULXElEfu+5ix1nRw@public.gmane.org>
To: "'FlashComm Mailing List'" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Sent: Wednesday, June 15, 2005 11:01 AM
Subject: [FlashComm] NetStream.Play.Stop not triggered with progressive
video


> Hi,
> Not sure if this has come up before but I am experiencing the following
> prolem with a progressively playing flv video:
> Once the end of the video is reached, a NetStream.Play.Stop is not
> triggered
> and neither is a NetStream.Buffer.Empty triggered.
>
> All I see is this
>
> code = NetStream.Play.Start
> code = NetStream.Buffer.Full // video starts playing
>
> Then the video plays to the end but no more status messages are triggered.
>
> The problem seems to be specific to this one video file (or let's say it's
> the only file that behaves this way up until now). Other clips trigger the
> STOP and EMPTY correctly which makes me believe that this is an issue with
> the file, not my code (in fact I am certain my code is as this is just a
> simple test file to replicate the problem).
>
> Any ideas? Can flv files be somehow corrupted? How does the NS.Stop stuff
> work behind the scenes? Is there something that can be wrong 'inside' the
> file?
>
> Thanks
>
> Stefan
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>




=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com