-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TODO: Allow dynamically replace audio source for the elements. #14
Comments
You can dynamically change the audio in the $ref audio player by giving it a unique :key="some.id" but when I do this I can only get one of the av things to work. |
Actually i fixed this by giving only av-waveform a key and not av-bars :) Dynamic changing of the track is totally doable. Just give the audio element an id and change its src with regular js wait for the canplay callback and play it. |
@galipmedia thank you. I will test it and document your idea in README |
Thanks for the info here, very helpful. One caveat here seems to be that under the condition that the value provided for the src leads to an error when the component is mounted (this includes an empty string, A possible workaround would be to provide a placeholder/empty audio file as the source. |
Hello Tim, |
Hi Stas, using All working perfectly now, thank-you! |
Using key can help to reload the component when audio source changes. |
Hi,pankaj, I wonder if the |
No description provided.
The text was updated successfully, but these errors were encountered: