1. Media
  2. Media

Media

Media API

This is the top-most component in the library used to group media elements and control the flow of media state.

Import

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

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

      

Properties

Methods

Events