| Stefan Richter 2005-06-15, 7:45 am |
| Hi adam,
Thanks for replying. I'll test later as you suggested monitoring time and
duration.
My old approach was actually similar to yours - I needed to track play times
of my flvs so I monitored them with an interval. Shame, the onstatus
approach seemed much more robust - until now.
Please post your code if you could.
What do you do with an apparently 'corrupt' flv file? And have you seen many
files behave in this way? What did you use for encoding? I think I used
Sorenson 4 for mine - most of the files seem to work fine...
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
|