Get video frame for face detection

can you guys please help me with the react-native-webrtc. I have done security camera applications like Alfred using react-native-webrtc it’s working fine. I’m getting difficult to get the motion detection on live streaming because of I can’t able to get the frame on <RTCView streamURL={this.state.videoURL} />

I tried with react-native-camera and react-native-tensorflow it’s detecting the image but I can’t able to do live streaming using webrtc URL

I expected the output live streaming should work along with person/object detection, but the actual output live to stream works alone perfectly