I just want to ask for permission to access the microphone in the Chrome Extension. (Fix) #161632
Unanswered
MUHAMMAD-ALI-BILAL
asked this question in
Programming Help
Replies: 1 comment 2 replies
-
the user's code doesn't work because "microphone" is not a valid permission in manifest.json for chrome extensions. microphone access must be requested using navigator.mediaDevices.getUserMedia() in javascript not via the manifest. try: html:
manifest.json:
js:
🥱 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
I want to build the simple chrome extension In which when user click on the extension it will only show the button ("Enable Microphone") and when user click on the button browser will ask for the microphone permission to (Allow or Deny) Just that's it.
The Error i am facing

This is the manifest.json file code

This is the options.html code
This is the options.js code
I am using the react for the Chrome-Extension Development and all files works when it is in the public Folder so please help me how can i Resolve this error
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions