pttx-plugin
Version:
60 lines (59 loc) • 1.84 kB
TypeScript
export declare const useFunc: (props: any) => {
videoConfig: import("vue").Ref<{
src: any;
poster: any;
volume: any;
themeColor: any;
activeColor: any;
width: any;
height: any;
}>;
videoState: import("vue").Ref<{
play: boolean;
hideControl: boolean;
distance: number;
downState: boolean;
playState: boolean;
leftInit: number;
isFullScreen: boolean;
isHalfScreen: boolean;
isLoading: boolean;
}>;
voiceState: import("vue").Ref<{
distance: number;
downState: boolean;
topInit: number;
}>;
videoRef: any;
videoDomRef: any;
videoProOutRef: any;
videoCacheRef: any;
videoProRef: any;
videoPoiRef: any;
duration: import("vue").Ref<string>;
currentTime: import("vue").Ref<string>;
processWidth: import("vue").Ref<number>;
voiceProOutRef: any;
voiceProRef: any;
voicePoiRef: any;
voiceProcessHeight: import("vue").Ref<number>;
handleHalfScreen: () => void;
handleMouseEnterControlVoice: (controlName: string) => void;
handleMouseLeaveControlVoice: (controlName: string) => void;
handleProgressDown: (ev: any) => void;
handleInitVideo: () => void;
play: (flag?: any) => void;
pause: (flag?: any) => void;
handleProgressMove: (ev: any) => void;
handleProgressUp: () => void;
handleVolProgressDown: (ev: any) => void;
handleVolProgressMove: (ev: any) => void;
handleClickVoice: (e: Event) => void;
handleVolProgressUp: (e: Event) => void;
handleControls: (ev: any, flag: string) => void;
handleScreen: () => void;
timeTranslate: (t: any) => string;
getOffset: (node: any, offset?: any) => any;
fullScreen: () => void;
exitFullscreen: () => void;
};