You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to play audio which is not a file such as --> src: ['sound.webm', 'sound.mp3'] (as far as I understand).
The audio is HTMLMediaElement.src type.
It's not working at the moment and I would really appreciate some help here :)
Thanks.
Here is part of the code:
playSong(response, volume){
const blob = new Blob([response as any], { type: 'audio/mpeg' });
const objectUrl = URL.createObjectURL(blob);
const audio = new Audio();
audio.src = objectUrl;
let read = new Howl ({
src:['audio.src' ],
html5: true,
//volume: this.scan_volume ,//this.scan_volume, //default
});
console.log("i'm in!")
read.volume(volume);
read.play();
}
The text was updated successfully, but these errors were encountered:
I'm trying to play audio which is not a file such as --> src: ['sound.webm', 'sound.mp3'] (as far as I understand).
The audio is HTMLMediaElement.src type.
It's not working at the moment and I would really appreciate some help here :)
Thanks.
Here is part of the code:
playSong(response, volume){
const blob = new Blob([response as any], { type: 'audio/mpeg' });
const objectUrl = URL.createObjectURL(blob);
const audio = new Audio();
audio.src = objectUrl;
let read = new Howl ({
src:['audio.src' ],
html5: true,
//volume: this.scan_volume ,//this.scan_volume, //default
});
console.log("i'm in!")
read.volume(volume);
read.play();
}
The text was updated successfully, but these errors were encountered: