google / google/ExoPlayer

Support custom AudioManager flags when changing device volume

Open
#10,028 1 comment 0 reactions 1 assignee Assigned to @tianyif View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.