UNPKG

vp-outstream-player

Version:

Outstream video player with Google IMA integration

20 lines (19 loc) 698 B
import { VpOutstreamPlayer } from "./core/vpOutstreamPlayer"; import "./styles/style.scss"; declare global { interface Window { __vpUserInteracted?: boolean; } } export interface VpOutstreamPlayerFactory { (containerId?: string): VpOutstreamPlayer | null; players: Map<string, VpOutstreamPlayer>; destroyAll(): void; } /** * vpOutstreamPlayer allows retrieval or creation of a player instance tied to a DOM element. * - If a containerId is passed, it reuses or creates a player on that element. * - If no ID is passed, returns the first available instance or undefined. */ declare const vpOutstreamPlayer: VpOutstreamPlayerFactory; export default vpOutstreamPlayer;