@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
21 lines (20 loc) • 659 B
TypeScript
import { FunctionComponent } from 'react';
import { VideoProps as VideoPropsTaro, BaseEventOrig } from '@tarojs/components';
export interface VideoProps extends Omit<VideoPropsTaro, 'src'> {
source: {
type: string;
src: string;
};
options: {
controls?: boolean;
muted?: boolean;
autoplay?: boolean;
poster?: string;
playsinline?: boolean;
loop?: boolean;
};
onPlay: (event: BaseEventOrig<any>) => void;
onPause: (event: BaseEventOrig<any>) => void;
onPlayEnd: (event: BaseEventOrig<any>) => void;
}
export declare const Video: FunctionComponent<Partial<VideoProps>>;