Error Constants
CONSTRAINT_FAILED
Value:gum.constraint_failed
Cause: Some requested constraints in getUserMedia call were not satisfied.
When it occurs:
- Requested resolution not supported by camera
- Frame rate constraints cannot be met
- Audio constraints incompatible with device
- Requested facing mode not available
ELECTRON_DESKTOP_PICKER_ERROR
Value:gum.electron_desktop_picker_error
Cause: Generic error selecting a DesktopCapturerSource in Electron app.
When it occurs:
- Electron desktop picker encounters an error
- Screen selection process fails
- Desktop capturer API issues
ELECTRON_DESKTOP_PICKER_NOT_FOUND
Value:gum.electron_desktop_picker_not_found
Cause: Custom desktop picker could not be detected for the Electron app.
When it occurs:
- Desktop picker not properly configured in Electron
- Missing Electron desktop capturer integration
- Custom picker implementation not found
GENERAL
Value:gum.general
Cause: Generic getUserMedia error.
When it occurs:
- Unspecified media device errors
- Browser API failures
- Unexpected getUserMedia rejections
NOT_FOUND
Value:gum.not_found
Cause: Requested device was not found.
When it occurs:
- No camera available on device
- No microphone connected
- Specific device ID not found
- Device disconnected during request
PERMISSION_DENIED
Value:gum.permission_denied
Cause: User denied permission to access the requested device.
When it occurs:
- User clicks “Block” on permission prompt
- Browser settings block media access
- System permissions deny access
- Site permissions previously denied
SCREENSHARING_GENERIC_ERROR
Value:gum.screensharing_generic_error
Cause: Generic error for screen sharing failure.
When it occurs:
- Screen sharing API failures
- Display capture errors
- Browser compatibility issues
SCREENSHARING_NOT_SUPPORTED_ERROR
Value:gdm.screen_sharing_not_supported
Cause: getDisplayMedia is not supported or available.
When it occurs:
- Browser doesn’t support getDisplayMedia API
- Electron app without permission handler
- Insecure context (non-HTTPS)
SCREENSHARING_USER_CANCELED
Value:gum.screensharing_user_canceled
Cause: User canceled screen sharing window selection dialog.
When it occurs:
- User clicks “Cancel” on screen picker
- User closes screen selection dialog
- User dismisses without selecting a source
TIMEOUT
Value:gum.timeout
Cause: Timeout passed to obtainAudioAndVideoPermissions expired without getUserMedia resolving.
When it occurs:
- getUserMedia takes too long to respond
- Permission prompt left open too long
- Device initialization hangs
TRACK_IS_DISPOSED
Value:track.track_is_disposed
Cause: Track has been disposed and cannot be used anymore.
When it occurs:
- Attempting to use track after calling dispose()
- Operating on cleaned-up track
- Using track after it’s been removed from conference
TRACK_NO_STREAM_FOUND
Value:track.no_stream_found
Cause: Track has no MediaStream associated.
When it occurs:
- MediaStream was not properly initialized
- Stream was detached or lost
- Track creation incomplete
TRACK_NO_STREAM_TRACKS_FOUND
Value:track.no_stream_tracks_found
Cause: No tracks were found in the media stream.
When it occurs:
- MediaStream has no audio or video tracks
- Tracks were removed from stream
- Empty MediaStream provided
TRACK_TOO_MANY_TRACKS_IN_STREAM
Value:track.too_many_tracks_in_stream
Cause: Too many tracks in the provided media stream.
When it occurs:
- MediaStream contains multiple audio/video tracks
- Expected single track but got multiple
- Stream aggregation errors
UNSUPPORTED_RESOLUTION
Value:gum.unsupported_resolution
Cause: Requested video resolution is not supported by the webcam.
When it occurs:
- Resolution exceeds camera capabilities
- Aspect ratio not supported
- Camera doesn’t support requested dimensions
Usage Example
Error Categories
getUserMedia Errors (gum.*)
Errors that occur when requesting media devices:- CONSTRAINT_FAILED
- GENERAL
- NOT_FOUND
- PERMISSION_DENIED
- TIMEOUT
- UNSUPPORTED_RESOLUTION
Screen Sharing Errors
Errors specific to screen/desktop sharing:- SCREENSHARING_GENERIC_ERROR
- SCREENSHARING_NOT_SUPPORTED_ERROR
- SCREENSHARING_USER_CANCELED
- ELECTRON_DESKTOP_PICKER_ERROR
- ELECTRON_DESKTOP_PICKER_NOT_FOUND
Track Management Errors (track.*)
Errors related to track lifecycle and state:- TRACK_IS_DISPOSED
- TRACK_NO_STREAM_FOUND
- TRACK_NO_STREAM_TRACKS_FOUND
- TRACK_TOO_MANY_TRACKS_IN_STREAM