react-native-twilio-video-webrtc
react-native-twilio-video-webrtc copied to clipboard
App crashing on call disconnect, after toggling video off
Steps to reproduce
- Implement app with required setup steps in readme of this repo
- Add a new button, and define its
onPressas:async () => { await twilioRef.current.setLocalVideoEnabled(!isVideoEnabled).then(isEnabled => setIsVideoEnabled(isEnabled)) } - Toggle video off using the button, and then end the call.
Expected behaviour
Call should end smoothly for all android API >=23
Actual behaviour
App crashes on API <= 26 on end call, after video toggled to off Call takes lot of time to end, on same API set, after video toggled on
Environment
- Node.js version: 16.3.0
- React Native version: 0.68.2
react-native-twilio-video-webrtc
Version: latest
just ask for the camera and microphone permissions when the app launches.It will fix the issue
Hi @ZaidQ797, I think he turned on camera and microphone permissions on his device before he called. The problem was that the app crashed when he clicked the end call button.
Hi @AkshayKrJha, Do you resolve this issue?