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.

13 lines (12 loc) 468 B
import { default as Player } from '../../Player'; import { default as Plugin } from '../Base'; export default class VolumePlugin extends Plugin { readonly name = "Volume"; constructor(player: Player); /** * Get the volume from the persister and set it on the player * Get the muted state from the persister and set it on the player * Set the volume and muted state on the player when the volume changes */ setup(): Promise<void>; }