# Detect when FLV is finished

**URL:** <https://forum.kirupa.com/t/detect-when-flv-is-finished/56747>\
**Category:** flash\
**Created:** [July 7, 2004, 1:49pm UTC](https://forum.kirupa.com/t/detect-when-flv-is-finished/56747 "2004-07-07T13:49:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rythmik1](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@rythmik1](https://forum.kirupa.com/u/rythmik1)\
**Post date:** [July 7, 2004, 1:49pm UTC](https://forum.kirupa.com/t/detect-when-flv-is-finished/56747/1 "2004-07-07T13:49:36Z")

</div>

Hi All,  
Anyone know of a tutorial or a script/command to detect when an FLV is finished playing, so that I can load up the next FLV?

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2004, 5:28am UTC](https://forum.kirupa.com/t/detect-when-flv-is-finished/56747/2 "2004-07-08T05:28:49Z")

</div>

please see It !! it will work

[http://www.kirupaforum.com/forums/showthread.php?t=62230](http://www.kirupaforum.com/forums/showthread.php?t=62230)

enjoy  
Ajo K jose

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2004, 9:25pm UTC](https://forum.kirupa.com/t/detect-when-flv-is-finished/56747/3 "2004-07-08T21:25:38Z")

</div>

you can actually use the .onStatus method from the NetStream class to check if the flv is finish like this:

name\_of\_ur\_NetStream\_var.onStatus = function (vInfo:Object):Void {  
if (vInfo.code == “NetStream.Play.Stop”) {  
//code here to load the next flv;  
}  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 3:20am UTC](https://forum.kirupa.com/t/detect-when-flv-is-finished/56747/4 "2004-07-09T03:20:59Z")

</div>

offline it works fine !! But g-shock, when stream is down or stoped coz of low bandwidth .code return “NetStream.Play.Stop” . isn’t it? and that doesn’t mean that video completely Over.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 8:14pm UTC](https://forum.kirupa.com/t/detect-when-flv-is-finished/56747/5 "2004-07-09T20:14:14Z")

</div>

umm… if u do a trace command for vInfo object u will see that the stream returns values for the buffer stop and play, even if the bandwidth is low the movie will not stop it will only have an empty buffer.
