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,