@remotion/studio
Version:
APIs for interacting with the Remotion Studio
20 lines (19 loc) • 502 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const beeped = {};
const playBeepSound = async (renderId) => {
if (beeped[renderId]) {
return;
}
beeped[renderId] = true;
const beepAudio = new Audio('/beep.wav');
try {
await beepAudio.play();
}
catch (error) {
// eslint-disable-next-line no-console
console.error('Error playing beep sound:', error);
throw error;
}
};
exports.default = playBeepSound;