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

feat: auto-prompt microphone permission #84

Merged
merged 4 commits into from
Mar 26, 2024
Merged

feat: auto-prompt microphone permission #84

merged 4 commits into from
Mar 26, 2024

Conversation

lynchee-owo
Copy link
Contributor

@lynchee-owo lynchee-owo commented Mar 25, 2024

todo

  • investigate and handle the problem Faris mentioned about microphone not working with airpods.

demo

permission_demo.mov

@mondaychen
Copy link
Contributor

looks good, but I think we should only ask for permission when user turns on the audio mode within this PR.
It shouldn't require using offscreen API. You can learn from the message set up in domOperations. When we need to prompt for audio permission, we send a message with chrome.tabs.sendMessage (see pagePRC) to insert iframe and request permission

Copy link
Contributor

@mondaychen mondaychen left a comment

Choose a reason for hiding this comment

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

LGTM! a bit nit picking

@@ -15,11 +15,12 @@ import {
StackDivider,
Flex,
Spacer,
} from "@chakra-ui/react";
useToast } from "@chakra-ui/react";
Copy link
Contributor

Choose a reason for hiding this comment

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

need to format this

@lynchee-owo lynchee-owo merged commit bd52555 into main Mar 26, 2024
3 checks passed
@mondaychen mondaychen deleted the lynchee/audio branch May 23, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants