# Netstream downloads entire FLV file before playback?

**URL:** <https://forum.kirupa.com/t/netstream-downloads-entire-flv-file-before-playback/265306>\
**Category:** Uncategorized\
**Created:** [July 7, 2008, 4:30pm UTC](https://forum.kirupa.com/t/netstream-downloads-entire-flv-file-before-playback/265306 "2008-07-07T16:30:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmilesp](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@bmilesp](https://forum.kirupa.com/u/bmilesp)\
**Post date:** [July 7, 2008, 4:30pm UTC](https://forum.kirupa.com/t/netstream-downloads-entire-flv-file-before-playback/265306/1 "2008-07-07T16:30:51Z")

</div>

Hello Kirupa Community,

I have a video player that i wish to stream and playback immediately on load, but it always downloads the entire flv file first before playback begins (which can be up to 30 seconds on a 15meg file). I am NOT using a Flash Media Server, but the video should be able to stream without a flash media server, correct?

Thanks in advance -b

relevant code:

```php

            uldr = new URLLoader();
            uldr.addEventListener(Event.COMPLETE, xmlCompleteHandler);
            uldr.load(new URLRequest(m_url));    
            var connection:NetConnection = new NetConnection();
            connection.connect(null);
            ns = new NetStream(connection);
            ns.addEventListener(NetStatusEvent.NET_STATUS, onStatus);
            ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAStatus);
            ns.addEventListener(IOErrorEvent.IO_ERROR, onIOStatus);
            ns.bufferTime = 1; 

```

---

<div class="post-metadata">

**Author:** ![xohol](https://avatars.discourse-cdn.com/v4/letter/x/59ef9b/32.png) [@xohol](https://forum.kirupa.com/u/xohol)\
**Post date:** [July 7, 2008, 5:57pm UTC](https://forum.kirupa.com/t/netstream-downloads-entire-flv-file-before-playback/265306/2 "2008-07-07T17:57:21Z")

</div>

i have a similar problem.

---

<div class="post-metadata">

**Author:** ![dail](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dail](https://forum.kirupa.com/u/dail)\
**Post date:** [July 7, 2008, 7:53pm UTC](https://forum.kirupa.com/t/netstream-downloads-entire-flv-file-before-playback/265306/3 "2008-07-07T19:53:32Z")

</div>

It wont “stream” without using either RED5 or FMS. Just track its download progress, and when say you hit 5% downloaded, play your flv.
