init commit
This commit is contained in:
19
remotion/node_modules/@remotion/studio/dist/components/PlayBeepSound.js
generated
vendored
Normal file
19
remotion/node_modules/@remotion/studio/dist/components/PlayBeepSound.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
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;
|
||||
Reference in New Issue
Block a user