Audio lost after disconnecting headphones
Reported by
diego.ru...@novotorium.com,
Sep 28 2017
|
|||||||
Issue descriptionSteps 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
,
Sep 28 2017
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.
,
Sep 28 2017
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
,
Sep 29 2017
diego.rubio@: Can you provide more specific reproduction steps? Otherwise this is not actionable by us.
,
Sep 29 2017
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.
,
Sep 29 2017
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
,
Sep 29 2017
Can you provide a reproduction consisting in a web page that we can open with chrome/webview?
,
Sep 29 2017
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.
,
Sep 29 2017
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
,
Oct 3 2017
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 |
|||||||
Comment 1 by ligim...@chromium.org
, Sep 28 2017