@jeepq/capacitor
Version:
Capacitor Plugins Library
76 lines (75 loc) • 2.43 kB
TypeScript
import { WebPlugin } from '@capacitor/core';
import { CapacitorVideoPlayerPlugin, capVideoPlayerOptions, capVideoPlayerResult } from '../definitions';
export interface IPlayerSize {
height?: number;
width?: number;
}
export declare class CapacitorVideoPlayerWeb extends WebPlugin implements CapacitorVideoPlayerPlugin {
private _players;
constructor();
/**
* Player initialization
*
* @param options
*/
initPlayer(options: capVideoPlayerOptions): Promise<capVideoPlayerResult>;
/**
* Play the current video from a given playerId
*
* @param options
*/
play(options: capVideoPlayerOptions): Promise<capVideoPlayerResult>;
/**
* Pause the current video from a given playerId
*
* @param options
*/
pause(options: capVideoPlayerOptions): Promise<capVideoPlayerResult>;
/**
* Get the duration of the current video from a given playerId
*
* @param options
*/
getDuration(options: capVideoPlayerOptions): Promise<capVideoPlayerResult>;
/**
* Set the volume of the current video from a given playerId
*
* @param options
*/
setVolume(options: capVideoPlayerOptions): Promise<capVideoPlayerResult>;
/**
* Get the volume of the current video from a given playerId
*
* @param options
*/
getVolume(options: capVideoPlayerOptions): Promise<capVideoPlayerResult>;
/**
* Set the muted property of the current video from a given playerId
*
* @param options
*/
setMuted(options: capVideoPlayerOptions): Promise<capVideoPlayerResult>;
/**
* Get the muted property of the current video from a given playerId
*
* @param options
*/
getMuted(options: capVideoPlayerOptions): Promise<capVideoPlayerResult>;
/**
* Set the current time of the current video from a given playerId
*
* @param options
*/
setCurrentTime(options: capVideoPlayerOptions): Promise<capVideoPlayerResult>;
/**
* Get the current time of the current video from a given playerId
*
* @param options
*/
getCurrentTime(options: capVideoPlayerOptions): Promise<capVideoPlayerResult>;
private checkSize;
private _initializeVideoPlayerEmbedded;
private _initializeVideoPlayerFullScreen;
}
declare const CapacitorVideoPlayer: CapacitorVideoPlayerWeb;
export { CapacitorVideoPlayer };