1. Providers
  2. Audio

Providers

Audio

This provider enables audio playback via the HTML5 audio element.

Import

js
        import '@vidstack/player/define/vds-audio.js';

      
cdn
        <script
  type="module"
  src="https://cdn.jsdelivr.net/npm/@vidstack/player@next/cdn/define/vds-audio.js"
></script>

      

Usage

The audio provider is used to embed sound content into documents via the native <audio> element.

          
        

Multiple Sources

The list of supported media formats varies from one browser to the other. You should either provide your video in a single format that all the relevant browsers support, or provide multiple video sources in enough different formats that all the browsers you need to support are covered.

          
        

Previous <- Events