1. Media
  2. Media Visibility

Media

Media Visibility API

This component is used to manage media state as page or viewport visibility changes.

EXPERIMENTAL

This component is marked as experimental, meaning its API might change based on user feedback. We recommend waiting for a stable release; however if you decide to use this in production, ensure you follow release notes closely and don't blindly upgrade.

Import

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

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

      

Properties

Events