Support custom AudioManager flags when changing device volume
Open
enhancement
low priority
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I have my own volume control bar. I hope to call exoplayer Do not display the UI of the system when using the `exoPlayer.setDeviceVolume()` method.
The comments in the source code mention that it will let users decide whether to display the system UI. Will this function be provided, or is there any other way to set the system volume.
`com.google.android.exoplayer2.StreamVolumeManager`
```java
// TODO(b/153317944): Allow users to override these flags.
private static final int VOLUME_FLAGS = AudioManager.FLAG_SHOW_UI;
```
Contributor guide
Assessment
This issue has not been assessed yet.