Version: 5.x
vm-audio
Enables loading, playing and controlling audio via the
HTML5 <audio>
element.
You don't interact with this component for passing player properties, controlling playback, listening to player events and so on, that is all done through the
vime-player
component.
#
Usage- HTML
- React
- Vue
- Svelte
- Stencil
- Angular
example.vue
example.svelte
example.html
#
PropertiesProperty | Description | Type | Default |
---|---|---|---|
crossOrigin | Whether to use CORS to fetch the related image. See MDN for more information. | "" ∣ "anonymous" ∣ "use-credentials" ∣ undefined | undefined |
disableRemotePlayback | EXPERIMENTAL: Whether to disable the capability of remote playback in devices that are attached using wired (HDMI, DVI, etc.) and wireless technologies (Miracast, Chromecast, DLNA, AirPlay, etc). | boolean ∣ undefined | undefined |
mediaTitle | The title of the current media. | string ∣ undefined | undefined |
preload | Provides a hint to the browser about what the author thinks will lead to the best user experience with regards to what content is loaded before the video is played. See MDN for more information. | "" ∣ "auto" ∣ "metadata" ∣ "none" ∣ undefined | 'metadata' |
#
SlotsSlot | Description |
---|---|
Pass <source> and <track> elements to the underlying HTML5 media player. |