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? > > I dug up this old flashcomm post from Brandon Krakowsky in case it's any > use: > > > I noticed that as well. I've never had good luck with > > "NetStream.Play.Stop". I think part of the problem is that > > some FLVs never get to the very end of the file - maybe .5 > > seconds before the end. > > The other part of the problem might be the encoder you're > > using. Flash 8 Encoder vs. Riva vs. Flix. > > > > I avoid the whole thing by monitoring the playhead inside of > > a setInterval or onEnterFrame, and comparing it to the > > totalTime. This way, I never have to worry about those > > objects not firing. Once again, I DO run into the problem > > where the playhead doesn't get all the way to the end, so > > tend to look for the playhead to be .5 seconds from the end, > > or more. Seems to do the trick everytime. Of course, if you > > can, make sure the videos have a little extra something at > > the end so they don't get cut off. > > > Helen > > natalia Vikhtinskaya wrote: > > > So as I understand no way to determine that video is finished with > > NetStream > > object? > > _______________________________________________ [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

