New issue
Advanced search Search tips

Issue 757588 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Requesting microphone stream in Android Chrome WebView while playing audio breaks audio playback

Reported by konstan...@24sessions.com, Aug 21 2017

Issue description

Steps 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.
 

Comment 1 by guidou@chromium.org, Aug 22 2017

Components: Blink>WebRTC>Audio

Comment 2 by guidou@chromium.org, Aug 25 2017

Owner: grunell@chromium.org
grunell@: Can you or someone in your team take a look?
Cc: ossu@chromium.org solenberg@chromium.org henrika@chromium.org
Status: Assigned (was: Unconfirmed)
+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.
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.
@henrika, it works fine in Chrome but causes issues when running in Chrome WebView.

WileyFox Swift 2 has it constantly.

Comment 6 by guidou@chromium.org, Aug 30 2017

Cc: torne@chromium.org
Components: Mobile>WebView
+torne, since the issue seems to be WebView specific
What permissions does the Chrome WebView app/component have?
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.
Is it possible this affects embeeded Chromium/Electron? Because Discord (based on Electron) also has a problem with frequently distorted capture audio.
Cc: grunell@chromium.org
Owner: henrika@chromium.org
henrika@ can you follow up on this?
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.

Labels: -Pri-2 Needs-Feedback Pri-3

Sign in to add a comment