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

[FIX] Assume microphone is available #14710

Merged
merged 2 commits into from
Jun 14, 2019

Conversation

tassoevan
Copy link
Contributor

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 this to the 1.2.0 milestone May 31, 2019
@tassoevan tassoevan requested review from ggazzo and sampaiodiego May 31, 2019 15:21
@@ -152,7 +150,6 @@ Template.messageBoxAudioMessage.events({
recordingRoomId.set(this.rid);
} catch (error) {
instance.state.set(null);
instance.isMicrophoneDenied.set(true);
Copy link
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
Contributor 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants