Skip to content

Instantly share code, notes, and snippets.

@BrianLi101
Last active September 15, 2024 11:10
Show Gist options
  • Save BrianLi101/9bb2f6b8eaf8b24dce93797cd7e788e8 to your computer and use it in GitHub Desktop.
Save BrianLi101/9bb2f6b8eaf8b24dce93797cd7e788e8 to your computer and use it in GitHub Desktop.
navigator.mediaDevices.getUserMedia() errors
Problem OS (macOS, Windows) Chrome Safari Edge Firefox Error Type (MediaPermissionsError) Recommended User Action
Browser doesn't have System Preferences access to camera or mic macOS NotAllowedError: Permission denied by system N/A (Safari always has access) NotAllowedError: Permission denied NotFoundError: The object can not be found here. SystemPermissionDenied Open Mac System Preferences and enable under Camera
Browser doesn't have System Preferences access to camera or mic Windows NotReadableError: Could not start video source N/A (Safari not available) NotReadableError: Could not start video source NotReadableError: Failed to allocate videosource N/A Open Windows Settings and enable under Camera
User denied permission to access camera or mic macOS, Windows NotAllowedError: Permission denied NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. NotAllowedError: Permission denied NotAllowedError: The request is not allowed by the user agent or the platform in the current context. UserPermissionDenied Manually give permission by clicking on Camera Blocked icon (Safari needs a reprompt)
Camera in use by another application (Zoom, Webex) or tab (Google Meet, Messenger Video) Windows NotReadableError: Could not start video source N/A (Safari not available) NotReadableError: Could not start video source AbortError: Starting videoinput failed CouldNotStartVideoSource Turn off other video
All Other Errors Generic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment