lark-cms
Version:
Multi terminal CMS component library
86 lines (85 loc) • 1.91 kB
TypeScript
import React from "react";
type Props = {
/**
* 父组件的ref
* @default null
*/
myRef?: any;
/**
* 导航对象
*/
navigation?: any;
/**
* 标题栏内容(剧中)
*/
headerElement?: any;
/**
* 是否显示返回按钮
*/
showBack?: boolean;
/**
* 是否默认全屏
*/
defaultFullscreen?: boolean;
/**
* 是否显示全屏
*/
showFullscreen?: boolean;
/**
* 是否显示静音
*/
showMute?: boolean;
/**
* 是否需要自动播放
*/
isShouldPlay?: boolean;
/**
* 是否需要循环播放
*/
isShouldLoop?: boolean;
/**
* 是否显示更多按钮
*/
showMoreMenu?: boolean;
/**
* 更多按钮的元素
*/
moreMenuElement?: any;
/**
* 是否缓存文件,默认缓存
*/
isCacheFile?: boolean;
/**
* 视频资源的大小(单位字节)
*/
sourceSize?: number;
/**
* 视频链接地址 (带缓存)
*/
sourceAsset: string;
/**
* 缩略图链接地址
*/
thumbnail?: string;
/**
* 视频宽度
*/
videoWidth?: number;
/**
* 视频高度
*/
videoHeight?: number;
/**
* 通用的回到函数
*/
commonCallback?: Function;
/**
* 加载等待提示语
*/
loadingWaitTips?: string;
};
/**
* 播放器组件(支持头部设置内容:返回 OR 更多、支持播放按钮等操作)
*/
declare const YhwVideoViewPlayerRN: ({ myRef, navigation, headerElement, showBack, defaultFullscreen, showFullscreen, showMute, isShouldPlay, isShouldLoop, showMoreMenu, moreMenuElement, isCacheFile, sourceSize, sourceAsset, thumbnail, videoWidth, videoHeight, commonCallback, loadingWaitTips, }: Props) => React.JSX.Element;
export default YhwVideoViewPlayerRN;