Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: fail gracefully when MediaDevices undefined #39

Open
dwelle opened this issue Dec 24, 2024 · 0 comments
Open

BUG: fail gracefully when MediaDevices undefined #39

dwelle opened this issue Dec 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dwelle
Copy link

dwelle commented Dec 24, 2024

Similar to #37

Expected behavior

When user has MediaDevices disabled / not supported, the <DailyProvider/> should fail gracefully.

Describe the bug (unexpected behavior)

Currently it throws on render, bubbling up to the ErrorBoundary with Uncaught TypeError: Cannot read properties of null (reading 'ondevicechange'), killing the app.

Steps to reproduce

Simulate undefined navigator.mediaDevices by doing:

Object.defineProperty(navigator, "mediaDevices", {
  value: null
});

Screenshots

image

System information

  • @daily-co/daily-react - 0.22.0
  • @daily-co/daily-js - 0.73.0
  • OS, version: Window 10, Desktop
  • Browser, version: Chrome 131.0.6778.205 (Originally reported on Firefox v133.0.3)
@dwelle dwelle added the bug Something isn't working label Dec 24, 2024
@Regaddi Regaddi self-assigned this Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants