1. Providers
  2. Audio

Providers

Audio

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

Usage

          
        

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.

          
        

Source Objects

The src property on the player accepts any of the following source objects:

          
        

Audio Element

You can obtain a reference to the underlying HTMLAudioElement element like so:

          
        

Event Target

The HTMLAudioElement can also be referenced on all media events like so: