v1.4.0
Back to <audio>
Audio element is where we started to play music on our sites and pages.
In this minor update, we think over, focusing on how we respect native HTML <audio>
element.
<audio>
attributes as props
- We take some of
<audio>
attributes from this Attributes List on MDN and make them props. They areautoplay
controls
muted
preload
andvolume
. Among them,muted
andvolume
are two-way-ed, allowing you some custom external control capability. - You may notice that originally supported
autoplay
andpreload
props have been switched into that group now. - Music info's
url
property is deprecated now, replaced withsrc
.
<audio>
events
- Just like supporting audio attributes, Vue-APlayer emits every Media Event triggered on its internal
<audio>
element. You can find a full list on MDN.
Improvements
- GREATLY improved seeking behavior
- Improved styling and UI implementation
Props Changes
theme
now defaults to- Music info's
url
property is deprecated now, usesrc
instead - Missing
music.title
music.author
don't throw an error now
Events Changes
- Custom events are ALL deprecated. Use Media Events instead.