react-native-streamer v0.1.11
react-native-streamer
A live framework for react native
Integrated with KSYStreamer SDK,react-native-streamer is a live streaming framework supporting RTMP,Network Auto Adapt,Beauty Filter,Beauty Voice,Software/Hardware Encoder etc.
Android Installation
- Install
react-native-streamerlatest stable version.
yarn add react-native-streamer- Add the following in
android/settings.gradle.
include ':react-native-streamer'
project(':react-native-streamer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-streamer/android/app/')- Update project dependencies in
android/app/build.gradle.
dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+"
compile project(':react-native-streamer')
}- Add the package in
MainApplication.java.
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ReactNativeStreamerPackage() // add this line
);
}- Refresh Gradle project.
IOS Installation
- Install
react-native-streamerlatest stable version.
yarn add react-native-streamerIn Xcode, in Project Navigator (left pane), right-click on the
Libraries>Add files to [project name]. Add./node_modules/react-native-navigation/ios/ReactNativeNavigation.xcodeprojIn Xcode, in Project Navigator (left pane), click on your project (top), then click on your target row (on the "project and targets list", which is on the left column of the right pane) and select the
Build Phasestab (right pane). In theLink Binary With Librariessection addlibReactNativeStreamer.aIn Xcode, in Project Navigator (left pane), click on your project (top), then click on your project row (on the "project and targets list") and select the
Build Settingstab (right pane). In theHeader Search Pathssection add$(SRCROOT)/../node_modules/react-native-streamer/ios. Make sure on the right to mark this new pathrecursiveDownload KSYSDK in
releaseIn Xcode, in Project Navigator (left pane), click on
ReactNativeNavigation.xcodeproj, then click on your project row (on the "project and targets list") and select theBuild Phasestab (right pane). In theLink Binary With Librariessection addGPUImage.frameworkandlibksygpulive.frameworkIn Xcode, in Project Navigator (left pane), click on your project (top), then click on your target row (on the "project and targets list", which is on the left column of the right pane) and select the
Build Phasestab (right pane). In theEmbed Frameworkssection addGPUImage.frameworkandlibksygpulive.frameworkRun you project