LocalVideoStreamReason
Reason for local video state change.
Enumerations
- LocalVideoStreamReasonOk
- 0: Local video is in a normal state.
- LocalVideoStreamReasonFailure
- 1: Unknown error.
- LocalVideoStreamReasonDeviceNoPermission
- 2: No permission to start the local video capture device. Prompt the user to enable device permissions before rejoining the channel.
Note: Deprecated: This enumeration is deprecated. Use onPermissionError callback with
Camerainstead. - LocalVideoStreamReasonDeviceBusy
- 3: The local video capture device is in use. Prompt the user to check if the camera is occupied by another app or try rejoining the channel.
- LocalVideoStreamReasonCaptureFailure
- 4: Failed to capture local video. Prompt the user to check whether the video capture device is working properly, whether the camera is occupied by another app, or try rejoining the channel.
- LocalVideoStreamReasonCodecNotSupport
- 5: Failed to encode local video.
- LocalVideoStreamReasonCaptureInbackground
- 6: (iOS only) The app is in the background. Prompt the user that video capture is not available when the app is in the background.
- LocalVideoStreamReasonCaptureMultipleForegroundApps
- 7: (iOS only) The app is in slide-over, split-view, or picture-in-picture mode and another app is using the camera. Prompt the user that video capture is not available under these conditions.
- LocalVideoStreamReasonDeviceNotFound
- 8: No local video capture device found. Check if the camera is properly connected and functioning, or try rejoining the channel.
- LocalVideoStreamReasonDeviceInterrupt
- 14: (Android only) Video capture is interrupted. Possible reasons:
- The camera is occupied by another app. Prompt the user to check if the camera is occupied.
- The app has been switched to the background. You can use a foreground service notification to inform the OS to continue capturing video in the background.c.
- LocalVideoStreamReasonDeviceFatalError
- 15: (Android only) Video capture device error. Prompt the user to turn the camera off and on again to restore functionality. If that doesn't work, check for hardware failure.