2025-12-01 11:12:27 +08:00
|
|
|
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
|
|
|
import type { AliPlayerProps, AliPlayerRef } from "./AliPlayer";
|
|
|
|
|
|
|
|
|
|
export interface VideoProps extends Omit<AliPlayerProps, "onEnded" | "onTimeupdate"> {
|
2025-12-01 11:31:26 +08:00
|
|
|
/** 弹窗标题,默认 “视频” */
|
|
|
|
|
title?: string;
|
2025-12-01 11:12:27 +08:00
|
|
|
/** 是否显示弹窗 */
|
|
|
|
|
visible?: boolean;
|
|
|
|
|
/** 是否内联模式 */
|
|
|
|
|
inline?: boolean;
|
|
|
|
|
/** 弹窗关闭事件 */
|
|
|
|
|
onCancel?: () => void;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 视频播放组件
|
|
|
|
|
*/
|
|
|
|
|
declare const Video: ForwardRefExoticComponent<
|
|
|
|
|
VideoProps & RefAttributes<AliPlayerRef>
|
|
|
|
|
>;
|
|
|
|
|
|
|
|
|
|
export default Video;
|