flash - 如何检测由于 Flash 崩溃导致的 YouTube iFrame 故障?

标签 flash error-handling google-chrome-extension youtube-javascript-api

我一直在研究 Google Chrome 扩展程序。我注意到 Flash 最近经常崩溃,我想让我的扩展程序从这样的事件中优雅地恢复。

I found a post talking about testing a Flash element directly,但我正在使用 YouTube 的 iFrame API。当我尝试在 iFrame 上调用 SetVariable 时,毫不奇怪,它总是失败。

关于我可以检测到我的播放器崩溃以便我做出相应 react 的其他方法的任何想法?

最佳答案

我没有这方面的经验,但我认为您可以为 API 提供的 onError 事件注册一个事件处理程序,或者您可以定期检查调用 getCurrentTime() 方法所用的时间。

关于flash - 如何检测由于 Flash 崩溃导致的 YouTube iFrame 故障?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14026332/

相关文章:

flash - Youtube API 函数

php - 指示mod_php在脚本错误发生时发出html状态代码-可能吗?

javascript - Jquery 在 Chrome 扩展选项页面中验证

google-chrome-extension - 仅在 "content_script"匹配时激活的浏览器操作

php - 是否可以使用数据包嗅探器来跟踪 GET 请求

php - POST vars 从 flash 到 php file_put_contents 文件名

php - PHP mysqli 插入表时出错

reactjs - Chrome 扩展输入滞后

file - 小程序和浏览器是否共享缓存?

python - pyqt4 : AttributeError: 'QPlainTextEdit' object has no attribute 'text'