0.0.2 • Published 4 years ago

pili-react-native-test v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

Pili SDK for react-native

安装

1. 通过 npm 安装依赖包
npm i --save pili-react-native
2. 添加 android 支持
3. 添加 ios 支持

使用

import { consts, Streaming } from './pili-react-native'

function Foo() {
  return (
    <Streaming
      rtmpURL="..."
      profile={{
        video: {
          fps: 30,
          bps: 800 * 1024,
          maxFrameInterval: 60
        },
        audio: {
          rate: 44100,
          bitrate: 96 * 1024,
        },
        encodingSize: consts.videoEncoding480
      }}
    />
  )
}