1. Providers
  2. Video

Providers

Video

This provider enables video playback via the HTML5 video element.

Import

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

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

      

Usage

The video provider is used to embed video content into documents via the native <video> 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 <- Audio