vue-aplayer | A beautiful HTML5 music player for Vue.js | Music Player library
kandi X-RAY | vue-aplayer Summary
kandi X-RAY | vue-aplayer Summary
This is the branch for @moefe/vue-aplayer 2.0.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-aplayer
vue-aplayer Key Features
vue-aplayer Examples and Code Snippets
Community Discussions
Trending Discussions on vue-aplayer
QUESTION
I have a component in VueJs such as Aplayer(or any other components) for playing audio and managing playlist on it.
Now I need to reload it when I change the playlist without changing the routes. is there any way to reload a component or destroy it then load it immediately?
I want to change the playlist of this component while it playing music, but sometimes it plays the music of the previous playlist and I don't know why.
HTML segment:
...ANSWER
Answered 2020-Mar-24 at 14:23The reason that your changes are not being picked up is because you (or the player component) are not utilizing Vue's reactivity system properly. You should be using the appropriate array mutation method so that array reactivity is maintained. Vue will not pickup changes made directly to array elements.
Meaning, when you do something like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-aplayer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page