Skip to content

v1.4.0

Compare
Choose a tag to compare
@SevenOutman SevenOutman released this 31 Mar 17:33
· 230 commits to develop since this release

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 are autoplay controls muted preload and volume. Among them, muted and volume are two-way-ed, allowing you some custom external control capability.
  • You may notice that originally supported autoplay and preload props have been switched into that group now.
  • Music info's url property is deprecated now, replaced with src.

<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 #41b883
  • Music info's url property is deprecated now, use src instead
  • Missing music.title music.author don't throw an error now

Events Changes

  • Custom events are ALL deprecated. Use Media Events instead.