Skip to content

yisar/oplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
      url='./001.mp4' // 播放地址
      type='m3u8' // 后缀名
      themeColor='#946ce6' // 默认为 clicli 基佬紫
      callback={{
        back // 非全屏状态下返回键回调,一般为路由返回
      }}
    />
  )
}

Screenshot

oplayer

About

👾 react native video player for expo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published