3.0.3 • Published 8 months ago

react-native-orzhtml-videoplayer v3.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
8 months ago

react-native-orzhtml-videoplayer

react-native video 视频控制组件

示例图

npm.io

安装

yarn add react-native-orzhtml-videoplayer

yarn add react-native-video

yarn add react-native-orzhtml-slider

yarn add react-native-modal

yarn add --dev @types/react-native-video

提示

如果 react-native 0.69 + 以上版本,react-native-video 需要升级到 v6.0.0 以上

yarn add react-native-video@alpha

例子

在 react-native-orzhtml-videoplayer 包目录下:

cd example

yarn ins
yarn start

// 如果是 MacBook pro M1 + 就用下面的命令
yarn im2
yarn start

可用组件,更多功能可以参考 example 里面的例子

PropDescriptionTypeRequired/Default
VideoPlayer视频模块
VideoModal全屏 Modal 视频模块
defaultVideoWidth视频默认竖屏的宽度number
defaultVideoHeight视频默认竖屏的高度number
statusBarHeight状态栏高度number
screenWidth屏幕宽度number
screenHeight屏幕高度number