📈(frontend) track media kind on join screen exceptions

When a media exception is raised on the join screen, include the
kind of media involved (microphone or camera) in the tracking event,
so we can tell which device is actually failing without having to
correlate other signals.
This commit is contained in:
lebaudantoine
2026-08-10 17:11:59 +02:00
committed by aleb_the_flash
parent 03e90b6178
commit f0c08bea92
@@ -39,7 +39,7 @@ const PERMISSION_KIND: Record<'audioinput' | 'videoinput', PermissionKind> = {
}
export const onJoinPreviewError = (e: Error, kind?: PermissionKind) => {
reportError('join_preview_failure', e, { path: 'join_preview' })
reportError('join_preview_failure', e, { path: 'join_preview', kind })
if (
MediaDeviceFailure.getFailure(e) === MediaDeviceFailure.PermissionDenied
) {