Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 videoDisplay 无响应时调用 play()、pause() 或 seek() 之类的命令时,它会被放入队列中,如何刷新此队列以便最近的命令是唯一处理的命令?
与其尝试刷新队列,不如检查 stateResponsive 是否为真。如果为true,则将命令发送到videoDisplay,如果为false,则存储命令,直到videoDisplay的stateResponsive为true,然后发送命令。