@slashedcloud/player
Version:
A media player application utilizing Shaka Player for adaptive video streaming, capable of playing HLS, MPD and plain HTTP video streams.
28 lines (27 loc) • 802 B
TypeScript
import { default as Player } from '../../Player';
import { default as Plugin } from '../Base';
export interface DownloadPluginOption {
url: string;
label: string;
size?: string;
}
/**
* Represents the DownloadFeature class.
* This feature allows the user to download media files.
*/
/**
* Represents the DownloadFeature class.
*/
export default class DownloadPlugin extends Plugin {
readonly name = "DownloadPlugin";
options: DownloadPluginOption[];
/**
* Creates an instance of DownloadFeature.
* @param player - The SlashedCloudPlayer instance.
*/
constructor(player: Player, options: DownloadPluginOption[]);
/**
* Sets up the DownloadFeature by creating the download container, button, list, and items.
*/
setup(): Promise<void>;
}