Error codes for CameraEventsHandler in CameraCapturer?

Skip to first unread message

Aniket Kadam

Dec 28, 2021, 4:37:04 AM12/28/21
to discuss-webrtc
These are all the errors the CameraEventsHandler might throw in onCamerSwitchError

reportCameraSwitchError("Attempted to switch to unknown camera device " + selectedCameraName,
reportCameraSwitchError("Camera switch already in progress.", switchEventsHandler);
reportCameraSwitchError("switchCamera: camera is not running.", switchEventsHandler);
reportCameraSwitchError("No camera to switch to.", switchEventsHandler);

Which can be seen here 
It might be helpful to have error codes for those as well so people don't need to do string parsing to deal with them.
It would be helpful in the event such errors were to be localised as well.

Would this be a helpful thing to raise a PR for?
Reply all
Reply to author
0 new messages