mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Cross-reference per-stream volume methods from device volume methods
The per-stream methods are generally preferred and having a reference to them from the device-wide methods may help with discoverability. Issue: google/ExoPlayer#11295 PiperOrigin-RevId: 567604785
This commit is contained in:
parent
d9563b133e
commit
4f4335943c
@ -3319,6 +3319,9 @@ public interface Player {
|
|||||||
* <p>For devices with {@link DeviceInfo#PLAYBACK_TYPE_REMOTE remote playback}, the volume of the
|
* <p>For devices with {@link DeviceInfo#PLAYBACK_TYPE_REMOTE remote playback}, the volume of the
|
||||||
* remote device is returned.
|
* remote device is returned.
|
||||||
*
|
*
|
||||||
|
* <p>Note that this method returns the volume of the device. To check the current stream volume,
|
||||||
|
* use {@link getVolume()}.
|
||||||
|
*
|
||||||
* <p>This method must only be called if {@link #COMMAND_GET_DEVICE_VOLUME} is {@linkplain
|
* <p>This method must only be called if {@link #COMMAND_GET_DEVICE_VOLUME} is {@linkplain
|
||||||
* #getAvailableCommands() available}.
|
* #getAvailableCommands() available}.
|
||||||
*/
|
*/
|
||||||
@ -3328,6 +3331,9 @@ public interface Player {
|
|||||||
/**
|
/**
|
||||||
* Gets whether the device is muted or not.
|
* Gets whether the device is muted or not.
|
||||||
*
|
*
|
||||||
|
* <p>Note that this method returns the mute state of the device. To check if the current stream
|
||||||
|
* is muted, use {@code getVolume() == 0}.
|
||||||
|
*
|
||||||
* <p>This method must only be called if {@link #COMMAND_GET_DEVICE_VOLUME} is {@linkplain
|
* <p>This method must only be called if {@link #COMMAND_GET_DEVICE_VOLUME} is {@linkplain
|
||||||
* #getAvailableCommands() available}.
|
* #getAvailableCommands() available}.
|
||||||
*/
|
*/
|
||||||
@ -3342,6 +3348,9 @@ public interface Player {
|
|||||||
/**
|
/**
|
||||||
* Sets the volume of the device with volume flags.
|
* Sets the volume of the device with volume flags.
|
||||||
*
|
*
|
||||||
|
* <p>Note that this method affects the device volume. To change the volume of the current stream
|
||||||
|
* only, use {@link #setVolume}.
|
||||||
|
*
|
||||||
* <p>This method must only be called if {@link #COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS} is
|
* <p>This method must only be called if {@link #COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS} is
|
||||||
* {@linkplain #getAvailableCommands() available}.
|
* {@linkplain #getAvailableCommands() available}.
|
||||||
*
|
*
|
||||||
@ -3362,6 +3371,9 @@ public interface Player {
|
|||||||
* <p>The {@link #getDeviceVolume()} device volume cannot be increased above {@link
|
* <p>The {@link #getDeviceVolume()} device volume cannot be increased above {@link
|
||||||
* DeviceInfo#maxVolume}, if defined.
|
* DeviceInfo#maxVolume}, if defined.
|
||||||
*
|
*
|
||||||
|
* <p>Note that this method affects the device volume. To change the volume of the current stream
|
||||||
|
* only, use {@link #setVolume}.
|
||||||
|
*
|
||||||
* <p>This method must only be called if {@link #COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS} is
|
* <p>This method must only be called if {@link #COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS} is
|
||||||
* {@linkplain #getAvailableCommands() available}.
|
* {@linkplain #getAvailableCommands() available}.
|
||||||
*
|
*
|
||||||
@ -3381,6 +3393,9 @@ public interface Player {
|
|||||||
* <p>The {@link #getDeviceVolume()} device volume cannot be decreased below {@link
|
* <p>The {@link #getDeviceVolume()} device volume cannot be decreased below {@link
|
||||||
* DeviceInfo#minVolume}.
|
* DeviceInfo#minVolume}.
|
||||||
*
|
*
|
||||||
|
* <p>Note that this method affects the device volume. To change the volume of the current stream
|
||||||
|
* only, use {@link #setVolume}.
|
||||||
|
*
|
||||||
* <p>This method must only be called if {@link #COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS} is
|
* <p>This method must only be called if {@link #COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS} is
|
||||||
* {@linkplain #getAvailableCommands() available}.
|
* {@linkplain #getAvailableCommands() available}.
|
||||||
*
|
*
|
||||||
@ -3397,6 +3412,9 @@ public interface Player {
|
|||||||
/**
|
/**
|
||||||
* Sets the mute state of the device.
|
* Sets the mute state of the device.
|
||||||
*
|
*
|
||||||
|
* <p>Note that this method affects the device volume. To mute just the current stream, use {@code
|
||||||
|
* setVolume(0)} instead.
|
||||||
|
*
|
||||||
* <p>This method must only be called if {@link #COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS} is
|
* <p>This method must only be called if {@link #COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS} is
|
||||||
* {@linkplain #getAvailableCommands() available}.
|
* {@linkplain #getAvailableCommands() available}.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user