Open hendrytb opened 2 years ago
I'm facing this same issue.
That's weird. Do you happen to know if any of the components are being unmounted/mounted or any other lifecycle events?
@slycoder Let me check this. Our app does switch the current screen because we display a privacy screen when the app is backgrounded.
Odd, I was able to resolve my camera issue because I was using more than one camera. After removing the first camera (we use this as a preview camera before joining the room), the video restarts again with no issues. The audio does not come back however. I'm also using this in conjunction with react-native-callkeep to display the UI at the top, not sure if that's the reason why it also works.
Looks like I figured out the audio issue as well. I have a video player that uses audio that probably causes an issue when coming back to the app.
I am also facing same issue, I have tried to call the setLocalVideoEnabled(true) when app coming in foreground and setLocalVideoEnabled(false) when going to background. This changes worked in Android but not working in iOS.
Please help anyone have any solution. Our production app release getting delay due to this.
Steps to reproduce
Expected behaviour
The local video should start & continue to stream.
Actual behaviour
The local video is freeze and failed to stream, this is an intermittent problem, but happens frequently.
Here are the error logs from my XCode:
Environment
react-native-twilio-video-webrtc
Version: yarn version (react-native-twilio-video-webrtc 2.1.0)