AudioObj = new Audio;
will return "Sound is not defined"
I also tried the classic fix:
var audio = require("audio");
but no luck. I could add audio playback in some other part of the extension than in main.js , for example, some kind of content script where it works, but maybe there is a simpler and more elegant solution.
javascript html5-audio firefox-addon firefox-addon-sdk
Dotheevo
source share