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) 741 B
import { default as Plugin } from '../Base'; import { default as Player } from '../../Player'; /** * Represents the options for a preview thumbnail. */ export interface ThumbnailPluginOptions { kind: 'thumbnails'; src: string; } /** * Represents the feature that handles preview thumbnails in the player. */ export default class ThumbnailsPlugin extends Plugin { readonly name = "ThumbnailsPlugin"; options: ThumbnailPluginOptions; /** * Creates an instance of the PreviewThumbnailsFeature. * @param player The SlashedCloudPlayer instance. */ constructor(player: Player, options: ThumbnailPluginOptions); /** * Sets up the preview thumbnails feature. */ setup(): Promise<void>; }