xgplayer
Version:
video player
40 lines (39 loc) • 953 B
TypeScript
export default Start;
export type IStartConfig = {
[propName: string]: any;
isShowPause?: boolean;
isShowEnd?: boolean;
disableAnimate?: boolean;
mode?: 'hide' | 'show' | 'auto';
};
declare class Start extends Plugin {
/**
* @type IStartConfig
*/
static get defaultConfig(): IStartConfig;
constructor(args: any);
autoPlayStart: boolean;
clickHandler: any;
onPlayerReset: () => void;
onAutoplayStart: () => void;
registerIcons(): {
startPlay: {
icon: any;
class: string;
};
startPause: {
icon: any;
class: string;
};
};
initIcons(): void;
show(): void;
focusHide(): void;
recover(): void;
switchStatus(isAnimate: any): void;
animate(endShow: any): void;
switchPausePlay(e: any): void;
onPlayPause(status: any): void;
render(): string;
}
import Plugin from "../../plugin";