Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread natalia Vikhtinskaya
Thank you very much for help. I used this for two different flv videos.Ichecked status for both: For one I have this trace NetStream.Play.Start NetStream.Buffer.Full NetStream.Buffer.Flush NetStream.Buffer.Empty and for another NetStream.Play.Start NetStream.Buffer.Full

RE: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Karina Steffens
Privyet Natasha, Here's how I solved it: Private var movie_flv:mx.controls.MediaDisplay; private var t:Number; private var lastCheck:Number; Private var play_btn //ToggleButton Private function checkStatus(){ if (play_btn.selected movie_flv.playheadTime movie_flv.playheadTime

RE: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Karina Steffens
Isn't it amazing that Adobe/MM never bothered setting up a simple onStopMovie event?... -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: 18 January 2007 12:12 To: Flashcoders mailing list Subject: Re: [Flashcoders] how to know that thae video is finished? Hi,

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Muzak
Flash 8 has a new (and improved) Video component mx.controls.MediaDisplay no longer exists in Flash 8 and is replaced with mx.video.FLVPlayback http://livedocs.macromedia.com/flash/8/main/3477.html FLVPlayback component has a complete event:

Re: [Flashcoders] how to know that thae video is finished? using FLVPlayback

2007-01-18 Thread Helen Triolo
The MediaPlayback components do still exist -- they're just listed in the Flash 6-7 folder in the components window. I wanted to use FLVPlayback for a recent video project but I can't get it to display the streamed videos that are working fine with the MediaPlayback component. For the

RE: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Karina Steffens
Hi Muzak, Sounds like this new component might be a better option for Natalia's problem. Karina -Original Message- From: Muzak [mailto:[EMAIL PROTECTED] Sent: 18 January 2007 12:43 To: Flashcoders mailing list Subject: Re: [Flashcoders] how to know that thae video is finished?

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread natalia Vikhtinskaya
Sorry, maybe I do something wrong but I can not get playheadTime var movie_flv:mx.controls.MediaDisplay; var nc:NetConnection=new NetConnection(); nc.connect(null); var ns:NetStream=new NetStream(nc); ns.setBufferTime(3); ns.onStatus=function(info){ if

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread natalia Vikhtinskaya
Sorry, maybe I do something wrong but I can not get PlayHead Time var movie_flv:mx.controls.MediaDisplay; var nc:NetConnection=new NetConnection(); nc.connect(null); var ns:NetStream=new NetStream(nc); ns.setBufferTime(3); ns.onStatus=function(info){ if

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Helen Triolo
If you're using a NetStream object, then I believe you want ns.time, not playheadTime. Helen natalia Vikhtinskaya wrote: Sorry, maybe I do something wrong but I can not get playheadTime var movie_flv:mx.controls.MediaDisplay; var nc:NetConnection=new NetConnection();

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread natalia Vikhtinskaya
ok I tryed function videoStatus(){ trace(ns.time==duration) } it is always false even when video is finished. 2007/1/18, Helen Triolo [EMAIL PROTECTED]: If you're using a NetStream object, then I believe you want ns.time, not playheadTime. Helen natalia Vikhtinskaya

RE: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Karina Steffens
Sorry, it's bee a while since I wrote that script, so I forgot to mention that movie_flv in my code is an AS2 Video Playback component that has the movie attached to it instead of a simple movie clip. It's located in the components panel. You might want to try theVideo.playheadTime instead, but

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread natalia Vikhtinskaya
So as I understand no way to determine that video is finished with NetStream object? 2007/1/18, Karina Steffens [EMAIL PROTECTED]: Sorry, it's bee a while since I wrote that script, so I forgot to mention that movie_flv in my code is an AS2 Video Playback component that has the movie attached

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Helen Triolo
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

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread natalia Vikhtinskaya
yes very close When the video is finished ns.time=228.528 and duration=228.66; So ns.time=duration-0.5 give me good result. I don't know how flv was created. So this way allow me to find what I need. Thank you very much. 2007/1/18, Helen Triolo [EMAIL PROTECTED]: Does ns.time trace something

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Duncan Reid
I think the onComplete is only available via FMS, i think. There are a bunch of threads in the archives about this scenario but they can be difficult to find. Brian Lesser has some really good information on his site: http://echo.ryerson.ca/textPublisher/index.html /** * This function is

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Burak KALAYCI
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

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread natalia Vikhtinskaya
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.

Re: [Flashcoders] how to know that thae video is finished?

2007-01-18 Thread Burak KALAYCI
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:

Re: [Flashcoders] how to know that thae video is finished? usingFLVPlayback

2007-01-18 Thread Muzak
Heya Helen, You're correct, they're still there ;-) I was looking in the Classes directory for the as files themselves, without checking the components panel in the Flash IDE so assumed mx.controls.MediaDisplay was replaced by the FLVPlayback. Have you tried setting the isLive property to true

[Flashcoders] how to know that thae video is finished?

2007-01-17 Thread natalia Vikhtinskaya
Hi to all How to determine that the video is finished? I tried ns[onMetaData]=function(obj){ duration=obj.duration; } and then if(ns.time==duration) but it is always false. Thank you for any help. ___ Flashcoders@chattyfig.figleaf.com To change your

Re: [Flashcoders] how to know that thae video is finished?

2007-01-17 Thread Jordan Snyder
The onMetaData event is fired in the beginning of the clip if there is metadata. Using similar code, look at the onComplete event of the NetStream class. cheers On 1/17/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: Hi to all How to determine that the video is finished? I tried

Re: [Flashcoders] how to know that thae video is finished?

2007-01-17 Thread Shang
I look through the help file but didn't find onComplete event. What I always use is onStatus NetStream.Play.Stop. On 1/18/07, Jordan Snyder [EMAIL PROTECTED] wrote: The onMetaData event is fired in the beginning of the clip if there is metadata. Using similar code, look at the onComplete

Re: [Flashcoders] how to know that thae video is finished?

2007-01-17 Thread Matthias Dittgen
use this: myNetStream.onStatus = function(infoObject:Object):Void { if (debug==true) { status_txt.text += status ( + this.time + seconds)\n; status_txt.text += \t Level: + infoObject.level + \n; status_txt.text += \t Code: + infoObject.code + \n\n;