Number of decoded frames in flash memory

Flash.net.netStream has an undocumented field called "decodedFrames" (which I discovered after reading someone's blog). This value should indicate how many frames have been decoded so far.

I wonder since this is an undocumented field, can I rely on this value to be correct?

Also, why isn't it documented? - I asked this question on the adobe forum but it looks like no one is answering it. Hope someone knows the answer here.

Finally, if I don't rely on this value, what is the alternative for getting this value?

This is Flash documentation on NetStream: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html

+3


source to share


1 answer


I wonder since this is an undocumented field, can I rely on this value to be correct?

Yes. It doesn't fake the results ...

Also, why isn't it documented?



Because it is only guaranteed to work correctly on desktops (not sure if mobile support has been added since then)

Finally, if I don't rely on this value, what is the alternative for getting this value?

Little. You can try netStream.time and assume that if the time is higher then frames need to be decoded as well. This measures the time elapsed within the video so you can split it into frames if you want.

+1


source







All Articles