| Ing. Fabio Sonnati 2005-06-15, 7:45 am |
| I dont think stop event is fired on current time = movie lenght.
I think indeed this strange behaviour may be caused by file corruption.
Try to recompress the file (flv -> flv) with ffmpeg
In any case, if this behavior is frequent, try to use
(movielenght - margin) as a threshold point checked by
a setInterval routine
"Stefan Richter" <stefan-fMeCE+ULXElEfu+5ix1nRw@public.gmane.org> ha scritto
> 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
>
>
triggered.[vbcol=seagreen]
>
>
>
> =-----------------------------------------------------------
> 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
>
Ing. Fabio Sonnati
Lead Programmer - Progetto Sinergia
www.progettosinergia.com
=-----------------------------------------------------------
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
|