Whatever works for you is good. My point was this: Instead of duration, you can compare ns.time to the exact timestamp of the last tag (Of course you need to have that value first).
Best regards, Burak www.asvguy.com ----- Original Message ----- From: "natalia Vikhtinskaya" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <[email protected]> Sent: Thursday, January 18, 2007 6:21 PM Subject: Re: [Flashcoders] how to know that thae video is finished? > All these codes work well if ns.onStatus==NetStream.Play.Start. But I have > example of video that plays and has the end but never show this status. > I checked and for example function endOfVideoDetector always give me false > even if the video is over. So only withinNSecondsOfEnd work correctly. > > > 2007/1/18, Burak KALAYCI <[EMAIL PROTECTED]>: > > > > Hi, > > > > ns.time returns only timestamps of actual tags in a FLV, which means it > > will > > never return the duration but only the timestamp of the last tag: > > http://www.asvguy.com/2005/03/position_of_the.html > > > > Best regards, > > Burak > > www.asvguy.com > > > > Burak KALAYCI, Manitu Group > > http://www.buraks.com > > http://www.manitugroup.com > > > > ----- Original Message ----- > > From: "Helen Triolo" <[EMAIL PROTECTED]> > > To: "Flashcoders mailing list" <[email protected]> > > Sent: Thursday, January 18, 2007 4:51 PM > > Subject: Re: [Flashcoders] how to know that thae video is finished? > > > > > > > Does ns.time trace something close to duration, just not exactly equal > > > at the end? If so, just check for >= duration - somesmallamount (maybe > > > to do with the buffer size) instead of ==. Is this a progressive or > > > streamed flv, btw? _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

