Requesting microphone stream in Android Chrome WebView while playing audio breaks audio playback
Reported by
konstan...@24sessions.com,
Aug 21 2017
|
||||||
Issue descriptionSteps to reproduce the problem: This issue happens on Moto g5 and WileyFox Swift 2, but somehow works fine on Samsung Galaxy S5. 1. Start playing audio file 2. Request audio input via getUserMedia 3. Audio playback becomes very distorted 4. Stop media stream received from getUserMedia 5. Playback becomes normal again I've created JSFiddle for quick test: https://jsfiddle.net/3zan9bxn/4/ Just open it inside Chrome Webview in Android 6 (not sure if later versions have the same problem as well), click "Play sound" and after you hear the music click "get media". Sound will get very distorted. What is the expected behavior? Audio should keep playing. It should be possible to have an audio playing while requesting microphone input stream. This issue also breaks communication via WebRTC. What went wrong? It looks like getUserMedia does something with media playback and causes the issue. Releasing the stream fixes the problem. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 59 Channel: stable OS Version: 6.0.1 Flash Version: Please let me know if I can provide more relevant information.
,
Aug 25 2017
grunell@: Can you or someone in your team take a look?
,
Aug 28 2017
+solenberg, ossu, henrika - does this ring a bell? I can't recall anything similar. It's odd that getUserMedia would mess with audio playout. Seems like a device related problem.
,
Aug 28 2017
Most likely tied to either device or OS version. What does it mean by "Just open it inside Chrome Webview in Android 6"? Any difference compared with running the snippet in #1 in Chrome on Android? Calling gUM should not affect ongoing playing audio tags.
,
Aug 30 2017
@henrika, it works fine in Chrome but causes issues when running in Chrome WebView. WileyFox Swift 2 has it constantly.
,
Aug 30 2017
+torne, since the issue seems to be WebView specific
,
Aug 30 2017
What permissions does the Chrome WebView app/component have?
,
Aug 30 2017
App has: - android.permission.ACCESS_NETWORK_STATE - android.permission.ACCESS_WIFI_STATE - android.permission.INTERNET - android.permission.CAMERA - android.permission.MODIFY_AUDIO_SETTINGS - android.permission.RECORD_AUDIO WebView configured to grant anything that is requested.
,
Dec 21
Is it possible this affects embeeded Chromium/Electron? Because Discord (based on Electron) also has a problem with frequently distorted capture audio.
,
Jan 7
henrika@ can you follow up on this?
,
Jan 10
The reported version is very old. Please use the latest Webview on Android (71.0.3578.99) and report back if it still can be reproduced. And again, the report states "Just open it inside Chrome Webview" but it is not clear exactly how this is achieved. Add more exact details on how to reproduce the issue.
,
Jan 10
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by guidou@chromium.org
, Aug 22 2017