LocalVideoStreamReason

Reasons for local video state changes.

Enumerator

LocalVideoStreamReasonOk
0: The local video is normal.
LocalVideoStreamReasonFailure
1: No specified reason for the local video failure.
LocalVideoStreamReasonDeviceNoPermission
2: No permission to use the local video capturing device. Remind the user to grant permissions and rejoin the channel.
Deprecated:
This enumerator is deprecated. Please use CAMERA in the onPermissionError callback instead.
LocalVideoStreamReasonDeviceBusy
3: The local video capturing device is in use. Remind the user to check whether another application occupies the camera.
LocalVideoStreamReasonCaptureFailure
4: The local video capture fails. Remind your user to check whether the video capture device is working properly, whether the camera is occupied by another application, or try to rejoin the channel.
LocalVideoStreamReasonCodecNotSupport
5: The local video encoding fails.
LocalVideoStreamReasonCaptureInbackground
6: (iOS only) The app is in the background. Remind the user that video capture cannot be performed normally when the app is in the background.
LocalVideoStreamReasonCaptureMultipleForegroundApps
7: (iOS only) The current application window is running in Slide Over, Split View, or Picture in Picture mode, and another app is occupying the camera. Remind the user that the application cannot capture video properly when the app is running in Slide Over, Split View, or Picture in Picture mode and another app is occupying the camera.
LocalVideoStreamReasonDeviceNotFound
8: Fails to find a local video capture device. Remind the user to check whether the camera is connected to the device properly or the camera is working properly, and then to rejoin the channel.