1. Providers
  2. Audio

Providers

Audio

This provider enables audio playback via the HTML5 audio element.

Import

tsx
        import { Audio } from '@vidstack/player-react';

      

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