when I refresh page, audio did not played #2865
Unanswered
almaz1999kgz
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Or is it possible instead of using "media". Use "load" but make settings (webAudio) remain |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created wavesurfer 7 beta version. Here you appear to have removed functions such as backend, audiocontext, etc. So I connected to Web Audio to set it up. Further, when I set everything up and launched everything works, but when I refresh the page, the music does not play, sorry for the mistakes, I'm not English-speaking. help me please. My code
onMounted( () => {
audio.value = new Audio()
audio.value.controls = true
audio.value.src = files.value
wavesurfer.value = WaveSurfer.create({
container: "#" + waveform,
cursorColor: "#e2007a",
audioRate: parseFloat(speed.value),
removeMediaElementOnDestroy: true,
height: 80,
responsive: true,
media: audio.value,
cursorWidth: 2,
mediaType: "audio",
barHeight: 0.5,
splitChannels:[
{
waveColor: '#bababa',
progressColor: '#757575',
},
{
waveColor: '#e2007a',
progressColor: '#a4035a',
},
]
});
const context = new AudioContext();
const audioNode = context.createMediaElementSource(audio.value);
Beta Was this translation helpful? Give feedback.
All reactions