oplayer
v0.0.1
Published
react native video player for expo-av
Downloads
47
Readme
oplayer
react native video player for expo-av
Install
yarn add oplayer expo-av
Use
import React from 'react'
import Oplayer from 'oplayer'
export default function Player() {
return (
<Oplayer
source={{ uri: './001.mp4' }} // 播放地址
themeColor='#946ce6' // 默认为 clicli 基佬紫
callback={{
back // 非全屏状态下返回键回调,一般为路由返回
}}
/>
)
}