@vuux/video
Version:
Vue Nuxt 视频播放器
34 lines (33 loc) • 1.43 kB
TypeScript
import { default as _Video } from './src/index.vue';
export declare const Video: import('./withInstall').SFCWithInstall<import('vue').DefineComponent<import('./src/props').Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
play: (...args: any[]) => void;
pause: (...args: any[]) => void;
loading: (...args: any[]) => void;
error: (...args: any[]) => void;
menu: (...args: any[]) => void;
ready: (...args: any[]) => void;
}, string, import('vue').PublicProps, Readonly<import('./src/props').Props> & Readonly<{
onPlay?: ((...args: any[]) => any) | undefined;
onPause?: ((...args: any[]) => any) | undefined;
onLoading?: ((...args: any[]) => any) | undefined;
onError?: ((...args: any[]) => any) | undefined;
onMenu?: ((...args: any[]) => any) | undefined;
onReady?: ((...args: any[]) => any) | undefined;
}>, {
title: string;
width: string;
volume: number;
contextMenu: string[];
src: string;
startTime: number;
theme: string;
poster: string;
rate: number[];
muted: boolean;
buttons: import('./src/types').Buttons | string[];
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
videoPlaceholderEl: HTMLDivElement;
playerEl: HTMLDivElement;
videoEl: HTMLVideoElement;
}, any>> & Record<string, any>;
export type VideoInstance = InstanceType<typeof _Video>;