Flash.net.netStream 有一个未记录的字段,称为“decodedFrames”(这是我通过阅读某人的博客发现的)该值应该显示到目前为止已解码的帧数。
我想知道,由于这是一个未记录的字段,我可以相信这个值的正确性吗?
另外,为什么没有记录下来? --我在adobe的论坛上问过这个问题,但是好像没有人在那里回答问题。我希望这里有人知道答案。
最后,如果我不应该依赖这个值,那么获得这个值的替代方法是什么?
这是 Flash 在 NetStream 上的文档: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html
最佳答案
I wonder, since this is an undocumented field, can I rely on the correctness of this value?
是的。它不会伪造结果...
Also, why isn't this documented?
因为它只能保证在桌面上正常工作(不确定是否已添加移动支持)
Finally, if I am not supposed to rely on this value, what is the alternative to get this value?
不多。您可以尝试使用 netStream.time并假设如果时间更长,那么帧也必须被解码。这会测量视频中耗时,因此您可以根据需要将其分解成帧。
关于flash - 闪存中的解码帧数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27575571/