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

Issue with flipCamera() function not working when registering CallScreenActivity through AppRegistry in React Native Twilio Video project #743

Open
Muhammadkaleem opened this issue Apr 5, 2024 · 1 comment

Comments

@Muhammadkaleem
Copy link

I'm encountering an issue with the flipCamera() function in my React Native Twilio Video project. The function works fine when CallScreenActivity is navigated to, but it fails to work when registered directly through AppRegistry.

Problem

When registering CallScreenActivity through AppRegistry using the following code:

AppRegistry.registerComponent('full_screen', () => CallScreenActivity);

the flipCamera() function does not work as expected. Upon invoking flipCamera(), the camera does not flip, and there's no change in the camera view.

Background:
I'm using the react-native-twilio-video-webrtc package for Twilio Video functionality. The camera permission is properly set, and the flipCamera() function works as expected when CallScreenActivity is navigated to directly.

Verified Things

  1. Checked camera permissions, which are properly set.
  2. Ensured that Twilio Video setup is consistent between direct navigation and registration.
  3. Reviewed activity lifecycle and ensured flipCamera() is called after full initialization.
  4. Tested on multiple devices to verify consistency.

Expected behaviour

The flipCamera() function should work properly when CallScreenActivity is registered through AppRegistry, just like it does when navigated to directly.

Environment

  • Node.js version: 16
  • React Native version: 0.63.5
  • React Native platform + platform version: Android 13, Vivo y21A

react-native-twilio-video-webrtc

Version: 3.2.0

@lylysunshinee
Copy link

Same issue in android

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