-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I am integrating Banuba React Native SDK using @banuba/react-native.
The SDK initializes successfully, the camera is opened, the player is started, and no errors are emitted β but the camera preview remains black.
All SDK lifecycle calls appear to succeed, and events confirm that the camera and player are running.
Expected Behavior
After:
initialize()attachView(nativeTag)openCamera()startPlayer()
π The camera preview should be visible inside EffectPlayerView.
Actual Behavior
EffectPlayerViewrenders- SDK initializes successfully
- Camera opens
- Player starts
- Camera facing switch works (no error)
- Screen stays black
- No SDK errors are emitted
Logs
πΉ Permissions not granted yet, skipping
β
Camera and Microphone permissions granted
πΉ Ref is null, skipping initialization
πΉ EffectPlayerView ref received, starting initialization...
π¬ Initializing Banuba SDK...
β
SDK initialized
Attempt 1 - findNodeHandle result: 3
β
Attempt 1 - Valid native tag found: 3
π¬ Step 1: Calling attachView...
π· Step 2: Opening camera...
βΆοΈ Step 3: Starting player...
π Testing camera functionality...
β
Camera initialization complete
π· Set to front camera
No errors are reported via:
onErroronCameraOpenonVideoRecordingStatus
Environment
- Platform: Android
- OS: Android 13 / 14 (tested on emulator & real device)
- React Native: 0.79.5
- SDK:
@banuba/react-native - Architecture: New Architecture disabled
- JS Engine: Hermes
- Build Type: Debug
- Device: Physical + Emulator
Permissions
Permissions are granted successfully at runtime:
CAMERARECORD_AUDIO
Initialization Code (Simplified Flow)
BanubaSdkManager.initialize([], BANUBA_TOKEN);
BanubaSdkManager.attachView(nativeTag);
BanubaSdkManager.openCamera();
BanubaSdkManager.startPlayer();The nativeTag is obtained via:
findNodeHandle(ref)which returns a valid numeric value.
What I Have Already Tried
- Delaying
attachView,openCamera, andstartPlayer - Retrying initialization up to 3 times
- Switching camera facing (front/back)
- Testing on multiple devices
- Verifying permissions
- Ensuring SDK initializes before attaching the view
- Verifying token validity (SDK initializes successfully)
Questions / Help Needed
- Is there any required order or missing call for Android preview rendering?
- Is
EffectPlayerViewcompatible with Fabric / new RN versions? - Does Android require an explicit surface lifecycle callback?
- Is there a known issue with black preview but running camera?
- Should
startPlayer()be called beforeopenCamera()on Android?
Reproducibility
β
100% reproducible on Android
β iOS not tested yet
Additional Notes
- Video recording starts without throwing errors
- No crash or warning in Logcat
onCameraOpenevent fires successfully- View background remains black (
#000)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels