Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dfb9ac11
authored
Aug 18, 2021
by
samrobinson
Committed by
bachinger
Aug 19, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Deprecate ExoPlayer DeviceComponent.
PiperOrigin-RevId: 391499955
parent
2e2e5e9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
22 deletions
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java
View file @
dfb9ac11
...
...
@@ -394,42 +394,39 @@ public interface ExoPlayer extends Player {
List
<
Cue
>
getCurrentCues
();
}
/** The device component of an {@link ExoPlayer}. */
/**
* @deprecated Use {@link Player} instead, as the {@link DeviceComponent} methods are a part of
* the {@link Player} interface.
*/
@Deprecated
interface
DeviceComponent
{
/** Gets the device information. */
/** @deprecated Use {@link Player#getDeviceInfo()} instead. */
@Deprecated
DeviceInfo
getDeviceInfo
();
/**
* Gets the current volume of the device.
*
* <p>For devices with {@link DeviceInfo#PLAYBACK_TYPE_LOCAL local playback}, the volume
* returned by this method varies according to the current {@link C.StreamType stream type}. The
* stream type is determined by {@link AudioAttributes#usage} which can be converted to stream
* type with {@link Util#getStreamTypeForAudioUsage(int)}.
*
* <p>For devices with {@link DeviceInfo#PLAYBACK_TYPE_REMOTE remote playback}, the volume of
* the remote device is returned.
*/
/** @deprecated Use {@link Player#getDeviceVolume()} instead. */
@Deprecated
int
getDeviceVolume
();
/** Gets whether the device is muted or not. */
/** @deprecated Use {@link Player#isDeviceMuted()} instead. */
@Deprecated
boolean
isDeviceMuted
();
/**
* Sets the volume of the device.
*
* @param volume The volume to set.
*/
/** @deprecated Use {@link Player#setDeviceVolume(int)} instead. */
@Deprecated
void
setDeviceVolume
(
int
volume
);
/** Increases the volume of the device. */
/** @deprecated Use {@link Player#increaseDeviceVolume()} instead. */
@Deprecated
void
increaseDeviceVolume
();
/** Decreases the volume of the device. */
/** @deprecated Use {@link Player#decreaseDeviceVolume()} instead. */
@Deprecated
void
decreaseDeviceVolume
();
/** Sets the mute state of the device. */
/** @deprecated Use {@link Player#setDeviceMuted(boolean)} instead. */
@Deprecated
void
setDeviceMuted
(
boolean
muted
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment