AudioManager not working as expected on Chrome OS
Reported by
erikkarl...@spotify.com,
Sep 5 2017
|
||||||
Issue descriptionVersion: 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.
,
Sep 6 2017
Dylan, I guess it's yours.
,
Sep 6 2017
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.
,
Sep 20 2017
I'll put together a doc on audio volume on ChromeOS.
,
May 3 2018
,
Sep 14
,
Sep 15
,
Sep 17
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 |
||||||
Comment 1 by erikkarl...@spotify.com
, Sep 5 2017