import { WebPlugin } from '@capacitor/core'; import type { CapacitorVideoPlayerPlugin, capVideoPlayerOptions, capVideoPlayerIdOptions, capVideoVolumeOptions, capVideoTimeOptions, capVideoMutedOptions, capVideoRateOptions, capVideoPlayerResult } from './definitions'; export interface IPlayerSize { height: number; width: number; } export declare class CapacitorVideoPlayerWeb extends WebPlugin implements CapacitorVideoPlayerPlugin { private _players; private videoContainer; private mode; constructor(); echo(options: { value: string; }): Promise; /** * Player initialization * * @param options */ initPlayer(options: capVideoPlayerOptions): Promise; /** * Return if a given playerId is playing * * @param options */ isPlaying(options: capVideoPlayerIdOptions): Promise; /** * Play the current video from a given playerId * * @param options */ play(options: capVideoPlayerIdOptions): Promise; /** * Pause the current video from a given playerId * * @param options */ pause(options: capVideoPlayerIdOptions): Promise; /** * Get the duration of the current video from a given playerId * * @param options */ getDuration(options: capVideoPlayerIdOptions): Promise; /** * Set the rate of the current video from a given playerId * * @param options */ setRate(options: capVideoRateOptions): Promise; /** * Get the volume of the current video from a given playerId * * @param options */ getRate(options: capVideoPlayerIdOptions): Promise; /** * Set the volume of the current video from a given playerId * * @param options */ setVolume(options: capVideoVolumeOptions): Promise; /** * Get the volume of the current video from a given playerId * * @param options */ getVolume(options: capVideoPlayerIdOptions): Promise; /** * Set the muted property of the current video from a given playerId * * @param options */ setMuted(options: capVideoMutedOptions): Promise; /** * Get the muted property of the current video from a given playerId * * @param options */ getMuted(options: capVideoPlayerIdOptions): Promise; /** * Set the current time of the current video from a given playerId * * @param options */ setCurrentTime(options: capVideoTimeOptions): Promise; /** * Get the current time of the current video from a given playerId * * @param options */ getCurrentTime(options: capVideoPlayerIdOptions): Promise; /** * Get the current time of the current video from a given playerId * */ stopAllPlayers(): Promise; /** * Show controller * */ showController(): Promise; /** * isControllerIsFullyVisible * */ isControllerIsFullyVisible(): Promise; /** * Exit the current player * */ exitPlayer(): Promise; /** * Exit fullscreen mode for a given playerId * */ exitFullScreen(options: capVideoPlayerIdOptions): Promise; private checkSize; private _initializeVideoPlayer; private _getContainerElement; private handlePlayerPlay; private handlePlayerPause; private handlePlayerEnded; private handlePlayerExit; private handlePlayerReady; private addListeners; private removeListeners; }