@aidenlx/player
Version:
Headless web components that make integrating media on the a web a breeze.
32 lines • 995 B
TypeScript
import type { PageState, PageVisibility, VdsEvent } from '@vidstack/foundation';
import type { MediaProviderElement } from '../provider';
export declare type MediaVisibilityEvents = {
'vds-media-visibility-change': MediaVisibilityChangeEvent;
};
export declare type MediaVisibilityChange = {
/**
* The media provider element for which visibility has changed.
*/
provider: MediaProviderElement;
/**
* Whether media is intersecting the configured viewport on the `MediaVisibilityElement`.
*/
viewport: {
isIntersecting: boolean;
};
/**
* The current page state and visibility.
*/
page: {
state: PageState;
visibility: PageVisibility;
};
};
/**
* Fired when media visibility changes based on the viewport position or page visibility state.
*
* @bubbles
* @composed
*/
export declare type MediaVisibilityChangeEvent = VdsEvent<MediaVisibilityChange>;
//# sourceMappingURL=media-visibility.events.d.ts.map