yanbingbing / rn-live-stream

live video stream for react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rn-live-stream

NPM Version

Info

This library LFLiveKit

Only Support iOS

Add it to your project

Run npm install --save rn-live-stream

iOS

  1. Add RCTLFLiveKit.xcodeproj to Libraries

  2. Your project Click

  3. Go to General -> Embedded Binaries and add LFLiveKit.framework

  4. Linked Frameworks and Libraries add LFLiveKit.framework

Usage

import LiveStream from 'rn-live-stream';

<LiveStream
  started={false} // start your stream
  cameraFronted={true} // camera front or back
  url="rtmp://xxx" // your rtmp publish url
  landscape={false} // landscape mode
  onReady={() => {}} // streaming ready
  onPending={() => {}} // streaming ready to start
  onStart={() => {}} // streaming start
  onError={() => {}} // straming error
  onStop={() => {}} // streaming stop
/>

License

MIT

About

live video stream for react-native

License:MIT License


Languages

Language:Objective-C 80.3%Language:Objective-C++ 11.5%Language:C++ 7.2%Language:JavaScript 1.0%