react-native-twilio-video-webrtc icon indicating copy to clipboard operation
react-native-twilio-video-webrtc copied to clipboard

App crashing on call disconnect, after toggling video off

Open AkshayKrJha opened this issue 2 years ago • 3 comments

Steps to reproduce

  1. Implement app with required setup steps in readme of this repo
  2. Add a new button, and define its onPress as: async () => { await twilioRef.current.setLocalVideoEnabled(!isVideoEnabled).then(isEnabled => setIsVideoEnabled(isEnabled)) }
  3. 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

AkshayKrJha avatar Mar 13 '23 16:03 AkshayKrJha

just ask for the camera and microphone permissions when the app launches.It will fix the issue

ZaidQ797 avatar Apr 29 '23 14:04 ZaidQ797

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.

HoangDinhHoi avatar May 10 '24 06:05 HoangDinhHoi

Hi @AkshayKrJha, Do you resolve this issue?

HoangDinhHoi avatar May 10 '24 06:05 HoangDinhHoi