How to use Flowplayer functions in a content script?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to write a Firefox add-on for personal use and to learn a bit more about both JavaScript and the Firefox Add-on SDK. The add-on should open a vivo.sx URL and then automatically start the player, but I have 2 issues. I hope you guys can help me. The relevant add-on-code: function vivoplay() { pageMod.PageMod({ include: "https://vivo.sx/*", contentScriptFile: "./vivoplay.js", onAttach: play }); function play(worker) //Fires 2 Times { console.log("Timeout"); tmr.setTimeout(sendplay, 14000); function sendplay() { var a = 0; worker