# Unable to Run Wowza GoCoder with React Native

**URL:** <https://community.wowza.com/t/unable-to-run-wowza-gocoder-with-react-native/53509>\
**Category:** Wowza GoCoder SDK\
**Created:** [June 13, 2019, 11:05am UTC](https://community.wowza.com/t/unable-to-run-wowza-gocoder-with-react-native/53509 "2019-06-13T11:05:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yehan\_Pemarathne](https://avatars.discourse-cdn.com/v4/letter/y/b5e925/32.png) [@Yehan\_Pemarathne](https://community.wowza.com/u/Yehan_Pemarathne)\
**Post date:** [June 13, 2019, 11:05am UTC](https://community.wowza.com/t/unable-to-run-wowza-gocoder-with-react-native/53509/1 "2019-06-13T11:05:18Z")

</div>

I’m following the information at: [https://www.npmjs.com/package/react-native-wowza-gocoder](https://www.npmjs.com/package/react-native-wowza-gocoder)

I could integrate the SDK finally, figuring out some integration issues.

But when I run it on Android (did not run it on iOS yet) it gives me a NullPointerException on BroadcastManager.getOrientationBehavior(). This is a screenshot of the exception.

I’m clueless on what is going wrong here. Appreciate any help.

---

<div class="post-metadata">

**Author:** ![Yehan\_Pemarathne](https://avatars.discourse-cdn.com/v4/letter/y/b5e925/32.png) [@Yehan\_Pemarathne](https://community.wowza.com/u/Yehan_Pemarathne)\
**Post date:** [June 17, 2019, 7:54am UTC](https://community.wowza.com/t/unable-to-run-wowza-gocoder-with-react-native/53509/2 "2019-06-17T07:54:22Z")

</div>

I edited **/node\_modules/react-native-wowza-gocoder/android/src/main/java/com/rngocoder/BroadcastManager.java** and changed **getOrientationBehavior** method at the end of the file to return **WZMediaConfig.ALWAYS\_PORTRAIT** removing the “switch” block.

This fixed the crash above but then it only shows an all black screen. The reason for the black screen issue is that I have not given the app the Camera permission on the device. Giving the camera permission resolved all and it is now showing the camera preview.

---

<div class="post-metadata">

**Author:** ![Jason\_Tuchler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_tuchler/32/462_2.png) [@Jason\_Tuchler](https://community.wowza.com/u/Jason_Tuchler)\
**Post date:** [July 5, 2019, 5:42pm UTC](https://community.wowza.com/t/unable-to-run-wowza-gocoder-with-react-native/53509/3 "2019-07-05T17:42:37Z")

</div>

Hello @Yehan Pemarathne

Great to hear you were able to resolve this issue.

Regards,

JasonT
