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

Error : No camera is supported on this device #710

Open
nik6767 opened this issue Jun 8, 2023 · 2 comments
Open

Error : No camera is supported on this device #710

nik6767 opened this issue Jun 8, 2023 · 2 comments

Comments

@nik6767
Copy link

nik6767 commented Jun 8, 2023

Issue Description

My app has a timer that works in the background as a countdown, and when the timer reaches zero, I try to connect Twiliovideo in background, but it always fails and says No camera is supported on this device.

Steps to reproduce

  1. Start the countdown and put app in background,
  2. connect TwilioVideo in background when timer reaches zero,
  3. onRoomDidFailToConnect calls and got No camera is supported on this device error.

Expected behaviour

Even in the background, TwilioVideo should be able to establish a connection.

Actual behaviour

Always fails to connect room, and print No camera is supported on this device

Environment

  • Node.js version:14.18.2
  • React Native version:0.61.5
  • React Native platform + platform version: Android 13 vivo t2x 5G.

react-native-twilio-video-webrtc

Version: 3.2.0

@nik6767
Copy link
Author

nik6767 commented Jun 12, 2023

Hello

I have been stuck here since few days, can you please look into it?
@slycoder

Thank you :)

@ASrey
Copy link

ASrey commented Jul 7, 2023

Did you check your permissions? (eg: https://github.com/blackuy/react-native-twilio-video-webrtc#permissions-1)

Take a look at https://github.com/zoontek/react-native-permissions
Check the result of requestMultiple([PERMISSIONS.ANDROID.CAMERA, PERMISSIONS.ANDROID.RECORD_AUDIO]).
and if it's denied => request an access to it ;)

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

2 participants