You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use navigator.mediaDevices.getUserMedia to record audio. However, I'm consistently getting a "not-allowed" error, even after adding the necessary permission to the AndroidManifest.xml and granting the permission on the device.
Added the following permission to AndroidManifest.xml: <uses-permission android:name="android.permission.RECORD_AUDIO" />
Manually allowed the audio permission for the app in the Android settings.
Implemented the audio recording using the following code:
asyncfunctionstartRecording(){try{conststream=awaitnavigator.mediaDevices.getUserMedia({audio: true});// Further implementation...}catch(error){console.error("Error accessing the microphone",error);}}
Are there any additional steps required to properly set up audio permissions in a Tauri Android app?
No idea what the issue could be, maybe it's the wrong AndroidManifest file (can't remember if there are multiple) or maybe the way you enabled audio permissions was wrong/not enough. Can you try adding <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> and see if that makes it prompt for permissions?
Describe the bug
I'm trying to use
navigator.mediaDevices.getUserMedia
to record audio. However, I'm consistently getting a "not-allowed" error, even after adding the necessary permission to the AndroidManifest.xml and granting the permission on the device.Added the following permission to AndroidManifest.xml:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Manually allowed the audio permission for the app in the Android settings.
Implemented the audio recording using the following code:
Are there any additional steps required to properly set up audio permissions in a Tauri Android app?
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: