检测 Flash Player 节流阀何时开始/结束
Adobe 在 FP 10.1 中引入了限制。 (见下文)。
有没有人找到一种检测何时开始/停止的好方法?
我知道 Adobe 计划稍后为此举办一次活动,但它甚至没有包含在即将发布的 FP 11 版本中。
节流: 不可见的 SWF 和隐藏选项卡上的 SWF 将被限制为每秒 2 帧。除非 SWF 再次可见,否则不会进行渲染。计时器和本地连接的时钟速度也降至 2 FPS。使用空闲 CPU 时间对视频进行解码,但不进行渲染或显示,同时以 8 FPS 播放音频以保持向后兼容性。
In FP 10.1 Adobe introduced throttling. (see below).
Have anyone found a good way of detecting when this starts / stops?
I know Adobe has plan of making an event for this later on, but it's not even included in the upcomming FP 11 release.
Throttling:
Non-visible SWFs and SWFs on hidden tabs are throttled down to 2 frames per second. No rendering occurs unless the SWF becomes visible again. Timers and local connections are also clocked down to 2 FPS. Video is decoded but not rendered or displayed using idle CPU time while audio plays back at 8 FPS to preserve backwards compatibility.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 Flash Player 11.2 开始,现在可以使用
ThrottleEvent
请参阅文档:http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/ThrottleEvent.html
As of Flash Player 11.2 this is now possible using
ThrottleEvent
See documentation: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/ThrottleEvent.html