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.

18 lines (17 loc) 423 B
import { default as Player } from '../../Player'; export type PluginClass = new (player: Player, options: any) => Plugin; export default abstract class Plugin { /** * Name of the Plugin */ abstract readonly name: string; /** * The player instance */ player: Player; constructor(player: Player); /** * Logic to setup the plugin */ abstract setup(): Promise<void>; }