November's Paddleball Marathon
Miss any of our Open RFC calls?Watch the recordings here! »


1.0.6 • Public • Published


Platform License Release


This is a Native Module for React Native that allows integration of Wowza's GoCoder SDK in less time. !Note* we require RN 0.42+ and GoCoderSDK 1.5.+ for this to work!

Getting started

$ npm install react-native-wowza-gocoder --save

Mostly automatic installation

$ react-native link react-native-wowza-gocoder

Manual installation


  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-wowza-gocoder and add RNWowzaBroadcaster.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNWowzaBroadcaster.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<
Post installation iOS
  1. After obtaining WowzaGoCoderSDK framework and the wowzastatic-lib, add them both to a folder in the root directory of the project.
  2. Add the WowzaGoCoderSDK.framework to the build phases for your app target, add a copy files phase with the WowzaGoCoder.SDK


  1. Open up android/app/src/main/java/[...]/
  • Add import com.rngocoder.RNWowzaBroadcasterPackage; to the imports at the top of the file
  • Add new RNWowzaBroadcasterPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-wowza-gocoder'
    project(':react-native-wowza-gocoder').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-wowza-gocoder/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-wowza-gocoder')
Post installation Android
  1. After obtaining WowzaGoCoderSDK aar file, add it to your nodemodules/react-native-wowza-gocoder to the libs directory(create it if needed), it's also need to add the dependency on your main app, add the aar file to libs directory(create it if needed).
  2. Then add the following lines to both build.gradle files, on nodemodules/react-native-wowza-gocoder and app/build.gradle
    repositories {
        flatDir {
            dirs 'libs'
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        // The GoCoder SDK library dependency declaration
        compile ''
        // List additional dependencies here...


  1. Import the module import BroadcastView from 'react-native-wowza-gocoder';
  2. Set a config
const config ={
  1. Add functions for debug, testing
  console.log("Bcast start");
  console.log("Bcast fail");
  console.log("Bcast status change");
  console.log("Bcast event receive");
  console.log("Bcast error receive");
  console.log("Bcast encoded");
  console.log("Bcast stop");
  1. Use the component in render
<BroadcastView style= {styles.videoContainer}
                     hostAddress = {config.hostAddress}
                     applicationName = {config.applicationName}
                     broadcasting = {false}
                     username = {config.username}
                     password = {config.password}
                     sizePreset = {3}
                     muted = {false}
                     flashOn = {false}
                     frontCamera =  {false}
                     onBroadcastStart= {this.onBroadcastStart}
                     onBroadcastFail= {this.onBroadcastFail}
                     onBroadcastStatusChange= {this.onBroadcastStatusChange}
                     onBroadcastEventReceive= {this.onBroadcastEventReceive}
                     onBroadcastErrorReceive= {this.onBroadcastErrorReceive}
                     onBroadcastVideoEncoded = {this.onBroadcastVideoEncoded}
                     onBroadcastStop = {this.onBroadcastStop}
  1. Be sure to use absolute positioning on your styles otherwise the video may not show correctly
const styles = StyleSheet.create({
  container: {
    flex: 1,
  • Optional: If you are familiar with controlling state then you could trigger start/stop of streaming by passing state in the BroadcastView component prop broadcasting. example broadcasting = {false} to broadcasting = {this.state.brodcasting} * //Using the broadcast module

    var BroadcastManager = NativeModules.BroadcastModule;

    BroadcastManager.startTimer(1, 3600);

  • Android only - first argument - timer interval, second argument time to timeout timer in seconds

  • Stop Timer when stopping the broadcast - Android only

Running the example project

Install and link dependencies

cd react-native-wowza-gocoder/example
npm install


  1. Download the GoCoder SDK -
  2. Unzip and add "wowzagocoder_static_lib" and "WowzaGoCoderSDK.framework" to /example/ios/
  3. Open /example/ios/example.xcodeproj in Xcode
  4. From the Xcode Project Navigator, select the "example" project and the "example" target
  5. On the "General" tab configure the "Identity" settings with your app bundle identifier (should match the bundleID tied to your GoCoder license)
  6. Configure your "Signing" settings with your provisioning profiles
  7. Configure your GoCoder license key and Wowza server settings in example/wowzaConfig.js
  8. Run your project on a device (will not work properly on simulator)


  1. Download the GoCoder SDK -
  2. Unzip and add "com.wowza.gocoder.sdk.aar" to /example/android/app/libs/ (you may have to create the libs folder)
  3. Also add "com.wowza.gocoder.sdk.aar" to /example/node_modules/react-native-wowza-broadcaster/libs/
  4. Open /example/android in Android Studio and rename the package to match the package name tied to your GoCoder license
  5. Configure your GoCoder license key and Wowza server settings in example/wowzaConfig.js
  6. Run your project on a device (will not work properly on simulator)


  • Add better support for the size preset props for both platforms
  • Add support for Playback feature


npm i react-native-wowza-gocoder

DownloadsWeekly Downloads






Unpacked Size

121 kB

Total Files


Last publish


  • avatar