| Stefan Richter 2005-06-15, 7:45 am |
| My duration for the non firing flv file is 78.832 sec according to the
metadata (but I know that this figure also did not use to be 100% accurate)
and ns.time stops at 78.666
But I am not sure that the difference between these times is the reason the
onstatus does not get triggered. Check one of my working files:
Duration: 88.476
level = status
-----------
code = NetStream.Buffer.Empty
-----------
stopped
time: 88.45
So 88.476 is not reached yet the events still fire... But agreed, the
difference in the working file is much smaller...
Stefan
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of adam
Sent: Wednesday, June 15, 2005 10:43 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] NetStream.Play.Stop not triggered with
progressivevideo
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
=-----------------------------------------------------------
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
|