• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How to record audio in a StageWebView on Android ?

New Here ,
May 04, 2021 May 04, 2021

Copy link to clipboard

Copied

Hello everyone,

I have a problem regarding the recording of audio via an Android device microphone in an Adobe Air StageWebView.

Here are the relevant permission in my manifest :

<uses-permission
    android:name="android.permission.MICROPHONE"/>
<uses-feature
    android:name="android.hardware.microphone"/>
<uses-feature
    android:name="android.hardware.audio.pro"/>
<uses-permission
    android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-feature
    android:name="android.hardware.audio.low_latency"/>
<uses-permission
    android:name="android.permission.RECORD_AUDIO"/>

 

I'm targetting sdk 21 :

<uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="21"/>

So I don't have to ask for microphone access on runtime if I understand correctly.

 

Here's the error that gets thrown when I try to record audio in my webview :

Recorder unavailable: code: 0
name: "NotAllowedError"
message: "Permission denied"

 

Is there any solution for this ? Do I have to ask the permission on runtime ?

TOPICS
Development , How to

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines