mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-29 19:57:14 +00:00
e1a28f315d
Introduce a new handling flow for the case where the operating system itself is blocking browser access to the microphone or camera, rather than the browser's own permission. Detect the situation and surface guidance to the user, so they know they need to allow the browser to access their microphone/camera in the OS settings. Only a minority of users are impacted, but the failure mode is very confusing when it happens. Hopefully this reduces the amount of support requests around it.
12 lines
480 B
TypeScript
12 lines
480 B
TypeScript
import { MediaDeviceErrorAlert } from './MediaDeviceErrorAlert'
|
|
import { useWatchMediaDeviceErrors } from '../livekit/hooks/useWatchMediaDeviceErrors'
|
|
|
|
/**
|
|
* Single place responsible for the room's media device errors — mounts the
|
|
* watcher and renders the resulting user-facing alert.
|
|
*/
|
|
export const WatchMediaDeviceErrors = () => {
|
|
const { error, kind, clear } = useWatchMediaDeviceErrors()
|
|
return <MediaDeviceErrorAlert error={error} kind={kind} onClose={clear} />
|
|
}
|