Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AkshayKrJha opened this issue Mar 13, 2023 · 3 comments
Open

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

AkshayKrJha opened this issue Mar 13, 2023 · 3 comments

Comments

@AkshayKrJha
Copy link

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

@ZaidQ797
Copy link

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

@HoangDinhHoi
Copy link

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
Copy link

Hi @AkshayKrJha, Do you resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants