New issue
Advanced search Search tips

Issue 769829 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Audio lost after disconnecting headphones

Reported by diego.ru...@novotorium.com, Sep 28 2017

Issue description

Steps to reproduce the problem:
Background: Cordova App with SIP.js that connects to a FreeSwitch server.

1. Connect to Freeswitch server (audio starts playing) 
2. Connect headphones to cellphone (audio comes from headphones)
3.  Disconnect headphones (audio is lost)

What is the expected behavior?
I would expect audio to be heard either from the speaker or the earpiece.

What went wrong?
Audio goes mute.

Audio is recovered if a notification plays a sound.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 61.0.3163.98  Channel: stable
OS Version: 7.1.1
Flash Version: 

Permissions:

android.permission.WRITE_EXTERNAL_STORAGE
android.permission.CAMERA
android.permission.RECORD_AUDIO
android.permission.READ_PHONE_STATE
android.permission.MODIFY_AUDIO_SETTINGS
 
Labels: Needs-Feedback
Seems like a non chrome issue.

diego.rubio@ do you have any issue with chrome?
Hello ligim...,

It is my understanding that Cordova uses the Android WebView component based on the Chromium project.

On iOS it works fine(with iosRTC), which makes me believe it has to do something with the WebRTC implementation on Android.

Also reported this on SIP.js(https://github.com/onsip/SIP.js/issues/447) and they told me that was something related to the WebRTC libraries. I don't have anything between SIP.js and the Webview.

On the browser can't test that behavior because I have only one audio output on my computer.

I have attached an image with the navigator object output from remote debugging with chrome, that shows some information about versions, don't know how valid they are tho.

Bests,
Diego.
Screen Shot 2017-09-28 at 4.25.49 PM.png
389 KB View Download
Project Member

Comment 3 by sheriffbot@chromium.org, Sep 28 2017

Cc: ligim...@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "ligimole@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 4 by guidou@chromium.org, Sep 29 2017

Labels: Needs-Feedback
diego.rubio@: Can you provide more specific reproduction steps?
Otherwise this is not actionable by us.
Hello guidou,

Here is a bare-bones project I created on Android Studio, using WebView. You can run it on your device and it should connect to our testing server and start to play the Tetris song.

https://drive.google.com/a/novotorium.com/file/d/0BypXRi9SlpzsLVpnVWJiR1duN00/view?usp=sharing ~23MB

1.- Sound will start playing on the speaker.
2.- Connect Headphones. (sound comes from headphones as expected)
3.- Disconnect Headphones. (no sound from speaker/earpiece)

If you reconnect the headphones, you can still hear the sound there. If you disconnected the headphones and receive a notification that makes a sound, audio will recover to the speaker.

Bests,
Diego.

Project Member

Comment 6 by sheriffbot@chromium.org, Sep 29 2017

Cc: guidou@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "guidou@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 7 by guidou@chromium.org, Sep 29 2017

Labels: Needs-Feedback
Can you provide a reproduction consisting in a web page that we can open with chrome/webview?

Sure,

The project already includes the HTML and the setup for permissions. I opened the permissions a bit more so you can download it.

https://drive.google.com/a/novotorium.com/file/d/0BypXRi9SlpzsLVpnVWJiR1duN00/view?usp=sharing

Another Engineer tested it on Android 5.1 and it worked fine there with no audio issue.

I also have attached the bare HTML in this reply.
index.html
1.0 KB View Download
Project Member

Comment 9 by sheriffbot@chromium.org, Sep 29 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "guidou@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: WontFix (was: Unconfirmed)
This is unfortunately not actionable.
From the report, the failure is within a relatively large system, of which Android WebView is just one of many components. The provided JavaScript apparently requires a specific android application and does not even use Web Platform APIs directly but through a library.
Closing this as WontFix. Feel free to reopen once you are able to isolate the failure in a way that can be more directly tested in Chrome or WebView.

Sign in to add a comment