We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 697090b commit ec81e2fCopy full SHA for ec81e2f
src/common/util/audio/AudioPlayer.ts
@@ -3,7 +3,7 @@ export namespace AudioPlayer {
3
/**
4
* Plays an audio file from a URL (e.g. an MP3 file).
5
*/
6
- export async function playUrl(url: string): Promise<void> {
+ export async function playUrl(url: string, nbOpts?: any): Promise<void> {
7
return new Promise((resolve, reject) => {
8
const audio = new Audio(url);
9
audio.onended = () => resolve();
0 commit comments