Skip to content

Fix error handling in getMobileDevices to reject promises on failure#20

Open
polyarik wants to merge 1 commit into
flashphoner:wcs_api-2.0from
polyarik:wcs_api-2.0
Open

Fix error handling in getMobileDevices to reject promises on failure#20
polyarik wants to merge 1 commit into
flashphoner:wcs_api-2.0from
polyarik:wcs_api-2.0

Conversation

@polyarik

Copy link
Copy Markdown

The getMobileDevices function currently logs errors but does not reject the promise when device access fails (e.g., user denies permission, no cameras/microphones available, or getUserMedia throws). Instead, it resolves with null.

This behavior contradicts getMediaDevices (and standard getUserMedia), which correctly reject the promise on any failure.

@flashphoner

Copy link
Copy Markdown
Owner

We raised the ticket WCS-4952 to check anp apply the fix

@flashphoner

Copy link
Copy Markdown
Owner

We applied the fix in this tag (commit 366b8348)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants