Search code examples
apache-flexflashactionscript-3videonetstream

Playing a large/long h264 file with NetStream takes a LONG time to begin playback


I'm trying to play a 10 minute long video (h264/mp4) which is 39MB in size, after I call stream.play(fileURL) it doesn't start playback until its loaded around 12-16MB of the file (many many seconds later), I finally get onMetaData at this point too. Why doesn't it begin playback right away, or at least w/in a couple seconds? What can cause this bloated lead in time?

Thanks


Solution

  • I'm not on a media server, this is a normal http request.

    It appears that for some reason some of our video files aren't being run through qt-faststart. I tried the 10min video and it took 15 seconds to start, then ran it through qt-faststart and after that it started instantly.

    So the solution here is qt-faststart :)