4: The local video capture fails. Check whether the capturing device is working properly.
6: (iOS only) The application is in the background.
7: (iOS only) The application is running in Slide Over, Split View, or Picture in Picture mode.
3: The local video capturing device is in use.
10: (macOS and Windows only) The SDK cannot find the video device in the video device list. Check whether the ID of the video device is valid.
8: The SDK cannot find the local video capture device.
2: No permission to use the local video capturing device.
5: The local video encoding fails.
1: No specified reason for the local video failure.
0: The local video is normal.
12: The error code indicates that a window shared by the window ID has been closed, or a full-screen window shared by the window ID has exited full-screen mode. After exiting full-screen mode, remote users cannot see the shared window. To prevent remote users from seeing a black screen, Agora recommends that you immediately stop screen sharing.
Common scenarios for reporting this error code:
11: The shared window is minimized when you call \ref IRtcEngine::startScreenCaptureByWindowId "startScreenCaptureByWindowId" to share a window.
20: (Windows only) The SDK does not support sharing this type of window.
13: (Windows only) The window being shared is overlapped by another window, so the overlapped area is blacked out by the SDK during window sharing.
Local video state error codes.