# Live stream not working while using react-native-camera along with webRTC

**URL:** <https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259>\
**Category:** Help\
**Created:** [September 10, 2019, 5:18am UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259 "2019-09-10T05:18:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayaprakash](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jayaprakash](https://react-native-webrtc.discourse.group/u/jayaprakash)\
**Post date:** [September 10, 2019, 5:18am UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/1 "2019-09-10T05:18:30Z")

</div>

Hi, try to do the face detection on live streaming. Using **react-native-webrtc** `<RTCView />` I have done live streaming. It’s working fine alone. while integrating **react-native-camera** for face detection live streaming not working. But face detection working perfectly. Please help with these guys almost 7days gone on this. I posted the same 5 days back. Today it’s the last date of me to submit this project 🙏🙏😪😪

Please suggest if we can do the face detection using **react-native-webrtc** and **firebase mlkit** also it’s fine

**Packages which I used in my project**  
`"react": "16.8.3",`  
`"react-native": "0.59.4",`  
`"react-native-camera": "^2.11.1",`  
`"react-native-webrtc": "1.67.1",`  
`"socket.io-client": "2.2.0"`

---

<div class="post-metadata">

**Author:** ![saghul](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/saghul/32/4_2.png) [@saghul](https://react-native-webrtc.discourse.group/u/saghul)\
**Post date:** [September 10, 2019, 8:41am UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/2 "2019-09-10T08:41:59Z")

</div>

I’m afraid you’re going to need to hack react-native-webrtc to get ahold of the actual video frames to do the detection. See the VideoTrackAdapter as an example, is receives each video frame and we use it for detecting remote video muting.

Good luck!

---

<div class="post-metadata">

**Author:** ![jayaprakash](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jayaprakash](https://react-native-webrtc.discourse.group/u/jayaprakash)\
**Post date:** [September 10, 2019, 8:45am UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/3 "2019-09-10T08:45:53Z")

</div>

Is there any example with you saghul. for understanding the thing

---

<div class="post-metadata">

**Author:** ![saghul](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/saghul/32/4_2.png) [@saghul](https://react-native-webrtc.discourse.group/u/saghul)\
**Post date:** [September 10, 2019, 8:48am UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/4 "2019-09-10T08:48:02Z")

</div>

> <https://github.com/react-native-webrtc/react-native-webrtc/blob/master/ios/RCTWebRTC/WebRTCModule+VideoTrackAdapter.m>

  

> <https://github.com/react-native-webrtc/react-native-webrtc/blob/master/android/src/main/java/com/oney/WebRTCModule/VideoTrackAdapter.java>

---

<div class="post-metadata">

**Author:** ![jayaprakash](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jayaprakash](https://react-native-webrtc.discourse.group/u/jayaprakash)\
**Post date:** [September 10, 2019, 8:49am UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/5 "2019-09-10T08:49:20Z")

</div>

Thankyou saghul. I will go throw this once get doubt I will ping here . Can you help on this?

---

<div class="post-metadata">

**Author:** ![saghul](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/saghul/32/4_2.png) [@saghul](https://react-native-webrtc.discourse.group/u/saghul)\
**Post date:** [September 10, 2019, 8:52am UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/6 "2019-09-10T08:52:51Z")

</div>

No, I can’t sorry. I don’t have the experience with what you’re trying to do, but more importantly, I don’t have the time.

---

<div class="post-metadata">

**Author:** ![jayaprakash](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jayaprakash](https://react-native-webrtc.discourse.group/u/jayaprakash)\
**Post date:** [September 10, 2019, 9:19am UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/7 "2019-09-10T09:19:17Z")

</div>

Thank you, Did you have any idea why react-native-webrtc not working along with the react-native-camera?

---

<div class="post-metadata">

**Author:** ![saghul](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/saghul/32/4_2.png) [@saghul](https://react-native-webrtc.discourse.group/u/saghul)\
**Post date:** [September 10, 2019, 10:17am UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/8 "2019-09-10T10:17:47Z")

</div>

Probably because both try to open the camera and only one of them will be able to do so.

---

<div class="post-metadata">

**Author:** ![jayaprakash](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jayaprakash](https://react-native-webrtc.discourse.group/u/jayaprakash)\
**Post date:** [September 10, 2019, 1:01pm UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/9 "2019-09-10T13:01:07Z")

</div>

Yup, the same thing is shown in the Xcode console. Is there any option to do both in the same ? Or should I go for VideoTrackAdapter?

---

<div class="post-metadata">

**Author:** ![saghul](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/saghul/32/4_2.png) [@saghul](https://react-native-webrtc.discourse.group/u/saghul)\
**Post date:** [September 10, 2019, 2:05pm UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/10 "2019-09-10T14:05:02Z")

</div>

No, you will need to go the adapter route.

---

<div class="post-metadata">

**Author:** ![Ramesh](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Ramesh](https://react-native-webrtc.discourse.group/u/Ramesh)\
**Post date:** [September 18, 2019, 10:38am UTC](https://react-native-webrtc.discourse.group/t/live-stream-not-working-while-using-react-native-camera-along-with-webrtc/259/11 "2019-09-18T10:38:42Z")

</div>

Jayaprakash,  
Pls let me know if you were able to stream react-native-camera feed through react-native-webrtc as we are also in the same situation as you.

Regards,  
Ramesh
