You Are Here Home > Detecting the end of FLV stream in Actionscript 3, part 2

Detecting the end of FLV stream in Actionscript 3, part 2

Read this post first:
http://blog.code-head.com/detecting-the-end-of-flv-stream-in-actionscript-3

Funny today, I get the events in reverse order:

NetStream.Buffer.Empty
NetStream.Buffer.Flush

Yesterday it was:

NetStream.Buffer.Flush
NetStream.Buffer.Empty

I will find the solution though ;)

Detecting the end of FLV stream in Actionscript 3, part 2
Filed under: Actionscript, Annoying Stuff, Flash   Posted by: Codehead

Got a Question?

Get answers here.

4 Comments »

  1. Matt:
     

    Did you happen to install Flash 10?

    Comment

  2. Codehead:
     

    Not yet, I will today, why? Did they break code?

    Comment

  3.  

    You would figure that they think it’s OK to mess with the event order because there’s a reliable event to detect the end. Alas, there isn’t. So, I have no clue why they keep messing it up.

    Comment

  4. Codehead:
     

    From what I can see, there is no mark at the end of FLVs so the player doesn’t really know when it’s finished but Flash server (red5 etc.) sends the duration and you can access it through onMetaHandler which is what I ended up using.

    Comment

RSS feed for comments on this post. TrackBack URL

Leave a comment