blackuy / react-native-twilio-video-webrtc

Twilio Video (WebRTC) for React Native
https://www.twilio.com/docs/video
MIT License
608 stars 404 forks source link

App crashing on call disconnect, after toggling video off #688

Open AkshayKrJha opened 1 year ago

AkshayKrJha commented 1 year ago

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

react-native-twilio-video-webrtc

Version: latest

ZaidQ797 commented 1 year ago

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

HoangDinhHoi commented 6 months ago

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 commented 6 months ago

Hi @AkshayKrJha, Do you resolve this issue?