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) 837 B
import { default as Plugin } from '../Base'; import { default as Player } from '../../Player'; export interface LogoPluginOption { src: string; link?: string; } /** * Represents the LogoFeature class that extends the BaseFeature class. * This feature allows adding a logo to the player control panel. */ export default class LogoPlugin extends Plugin { readonly name = "LogoPlugin"; options: LogoPluginOption; /** * Creates an instance of LogoFeature. * @param {Player} player - The player instance. */ constructor(player: Player, options: LogoPluginOption); /** * Sets up the LogoFeature by registering the logo element to the control panel * and updating the player configuration. * @throws {Error} If the image option is not provided. */ setup(): Promise<void>; }