开发者

Flush Flex VideoDisplay request queue

开发者 https://www.devze.com 2022-12-24 08:25 出处:网络
When a command like play(), pause(), or seek() is called while the videoDisplay is un开发者_运维知识库responsive it gets put on a queue, how do I flush this queue so the most recent command is the onl

When a command like play(), pause(), or seek() is called while the videoDisplay is un开发者_运维知识库responsive it gets put on a queue, how do I flush this queue so the most recent command is the only command processed?


Instead of trying to flush the queue, check to see if the stateResponsive is true. If true, send the command to the videoDisplay, if false, store the command until the videoDisplay's stateResponsive is true and then send the command.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号