Skip to content

[FIX] Assume microphone is available#14710

Merged
sampaiodiego merged 2 commits intodevelopfrom
fix/microphone-access-firefox
Jun 14, 2019
Merged

[FIX] Assume microphone is available#14710
sampaiodiego merged 2 commits intodevelopfrom
fix/microphone-access-firefox

Conversation

@tassoevan
Copy link
Copy Markdown
Member

For Firefox, navigator.permission.query({ name: "microphone" }) is not available. This adds the assumption that the mic is granted as a fallback.

@tassoevan tassoevan added type: bug area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction labels May 31, 2019
@tassoevan tassoevan added this to the 1.2.0 milestone May 31, 2019
@tassoevan tassoevan requested review from ggazzo and sampaiodiego May 31, 2019 15:21
recordingRoomId.set(this.rid);
} catch (error) {
instance.state.set(null);
instance.isMicrophoneDenied.set(true);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what will happen if the mic permission was assumed to be granted and it fails when clicked? since this line was removed I assume it will silently fail, is that right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will keep the button, which is useful when the permission is accidentally denied; the next click will retrigger the permission dialog.

@sampaiodiego sampaiodiego merged commit 535a46c into develop Jun 14, 2019
@sampaiodiego sampaiodiego deleted the fix/microphone-access-firefox branch June 14, 2019 11:53
@sampaiodiego sampaiodiego mentioned this pull request Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants