# Does anyone know? (NetStream question)

**URL:** <https://forum.kirupa.com/t/does-anyone-know-netstream-question/113307>\
**Category:** Uncategorized\
**Created:** [June 16, 2004, 7:39pm UTC](https://forum.kirupa.com/t/does-anyone-know-netstream-question/113307 "2004-06-16T19:39:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![winstun](https://avatars.discourse-cdn.com/v4/letter/w/a183cd/32.png) [@winstun](https://forum.kirupa.com/u/winstun)\
**Post date:** [June 16, 2004, 7:39pm UTC](https://forum.kirupa.com/t/does-anyone-know-netstream-question/113307/1 "2004-06-16T19:39:27Z")

</div>

I’m trying to find out how to get the length of an imported .flv when using NetStream/ NetConnection.

I’ve looked in the help and tried a few test scripts but I can’t seem to be able to find how long it is.

There is the NetStream.time property, but that only says where the playhead is at currently.

I’m sure are some ways around this, like when the vid is done I’m sure I could know that, but I’d like to be able to begin loading the next vid before the end so some could cache and be able to play fluidly when the previous one is finished.

Any help or suggestions would be great. 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:** [June 16, 2004, 7:56pm UTC](https://forum.kirupa.com/t/does-anyone-know-netstream-question/113307/2 "2004-06-16T19:56:44Z")

</div>

maybe this helps:  
[http://www.eyezberg.com/content/view/108/53/](http://www.eyezberg.com/content/view/108/53/)

---

<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:** [June 16, 2004, 8:01pm UTC](https://forum.kirupa.com/t/does-anyone-know-netstream-question/113307/3 "2004-06-16T20:01:29Z")

</div>

After some more brainstorming I came up with hard coding the time length along with the flv name in a 2-dimensional array.

It seems like a cheap hack, but since I have to encode the vids to .flv anyway it won’t be hard to do.

If any have some other suggestions I’m always open to try them.

---

<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:** [June 16, 2004, 8:03pm UTC](https://forum.kirupa.com/t/does-anyone-know-netstream-question/113307/4 "2004-06-16T20:03:59Z")

</div>

Thanks for the link and the service Eyezberg!

I’m going to give it a try; it seems exactly what I need.

Cheers!

---

<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:** [June 16, 2004, 8:51pm UTC](https://forum.kirupa.com/t/does-anyone-know-netstream-question/113307/5 "2004-06-16T20:51:55Z")

</div>

I really gotta say thanks for that link, Eyezberg. That is one handy little app. and writes all the info I’ll need to xml.

Great site, btw - I bookmarked and registered!

---

<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:** [June 16, 2004, 9:16pm UTC](https://forum.kirupa.com/t/does-anyone-know-netstream-question/113307/6 "2004-06-16T21:16:00Z")

</div>

cheers 😉  
just saw you online right now…
