New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 761928 link

Starred by 2 users

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

AudioManager not working as expected on Chrome OS

Reported by erikkarl...@spotify.com, Sep 5 2017

Issue description

Version: 60.0.3112.112
Platform: 9592.85.0 (Official Build) stable-channel caroline
APK name (if relevant):

Steps to reproduce:
(1) Create an app that sets the stream volume with AudioManager.
AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 0, 0);

Expected result:
Should mute the Chrome OS volume.

Actual result:
Volume stays the same.


 
This is part of the work to optimize Spotify for Chromebook, see https://docs.google.com/document/d/1o8Jct7r6gUlC7STVnmm3HOhFVdtB4BNkTq1cag2Bgjc/edit#heading=h.yfoh1z11ko23

Comment 2 by uekawa@google.com, Sep 6 2017

Owner: dgreid@chromium.org
Dylan, I guess it's yours.
Owner: chinyue@chromium.org
We need to come up with a developer note about how volume control differs on a chromebook where the audio output and input are shared with all active chrome Tabs and multiple active android apps.

chinyue, can you put something together explaining how volume works?


The short story is that an app can't mute the system. There is only one volume for the device and it's controled by the user from the system UI only. But setting the stream volumes should work.
Status: Started (was: Untriaged)
I'll put together a doc on audio volume on ChromeOS.
Owner: cychiang@chromium.org
Components: OS>Kernel>Audio
Cc: hadrosaur@google.com
Emilie, this looks like https://buganizer.corp.google.com/issues/111087337
Yes, essentially apps cannot use the AudioManager methods, they must use setVolume. The docs do say this: https://developer.android.com/guide/topics/media-apps/volume-and-earphones#fixed-volume but they could be clearer.

I have a CL for this which I think will help: cl/213273269

Sign in to add a comment