UNPKG

@slashedcloud/player

Version:

A media player application utilizing Shaka Player for adaptive video streaming, capable of playing HLS, MPD and plain HTTP video streams.

26 lines (25 loc) 639 B
import { default as Player } from '../../Player'; import { default as Plugin } from '../Base'; export type PopUpPluginOption = { url: string; clicks?: number; } & ({ open: 'window'; width?: number; height?: number; features?: string; } | { open: 'tab'; width?: never; height?: never; features?: never; }); export default class PopUpPlugin extends Plugin { readonly name = "PopUpPlugin"; private options; clickCounter: number; alreadyShowPopUp: boolean; constructor(player: Player, options: PopUpPluginOption); setup(): Promise<void>; handleInteraction(e: Event): void; }