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
66c85245
authored
Aug 25, 2021
by
samrobinson
Committed by
bachinger
Aug 26, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Improve javadoc deprecation for ExoPlayer Components.
PiperOrigin-RevId: 392861577
parent
97466ab7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 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 @
66c85245
...
@@ -140,7 +140,10 @@ import java.util.List;
...
@@ -140,7 +140,10 @@ import java.util.List;
*/
*/
public
interface
ExoPlayer
extends
Player
{
public
interface
ExoPlayer
extends
Player
{
/** @deprecated Use the methods in {@link ExoPlayer} instead. */
/**
* @deprecated Use {@link ExoPlayer}, as the {@link AudioComponent} methods are defined by that
* interface.
*/
@Deprecated
@Deprecated
interface
AudioComponent
{
interface
AudioComponent
{
...
@@ -277,8 +280,8 @@ public interface ExoPlayer extends Player {
...
@@ -277,8 +280,8 @@ public interface ExoPlayer extends Player {
}
}
/**
/**
* @deprecated Use {@link Player}
instead, as the {@link TextComponent} methods are a part of the
* @deprecated Use {@link Player}
, as the {@link TextComponent} methods are defined by that
*
{@link Player interface}
.
*
interface
.
*/
*/
@Deprecated
@Deprecated
interface
TextComponent
{
interface
TextComponent
{
...
@@ -289,8 +292,8 @@ public interface ExoPlayer extends Player {
...
@@ -289,8 +292,8 @@ public interface ExoPlayer extends Player {
}
}
/**
/**
* @deprecated Use {@link Player}
instead, as the {@link DeviceComponent} methods are a part of
* @deprecated Use {@link Player}
, as the {@link DeviceComponent} methods are defined by that
*
the {@link Player}
interface.
* interface.
*/
*/
@Deprecated
@Deprecated
interface
DeviceComponent
{
interface
DeviceComponent
{
...
@@ -839,7 +842,7 @@ public interface ExoPlayer extends Player {
...
@@ -839,7 +842,7 @@ public interface ExoPlayer extends Player {
ExoPlaybackException
getPlayerError
();
ExoPlaybackException
getPlayerError
();
/**
/**
* @deprecated Use {@link ExoPlayer}, as the {@link AudioComponent} methods are
part of the
* @deprecated Use {@link ExoPlayer}, as the {@link AudioComponent} methods are
defined by that
* interface.
* interface.
*/
*/
@Nullable
@Nullable
...
@@ -847,7 +850,7 @@ public interface ExoPlayer extends Player {
...
@@ -847,7 +850,7 @@ public interface ExoPlayer extends Player {
AudioComponent
getAudioComponent
();
AudioComponent
getAudioComponent
();
/**
/**
* @deprecated Use {@link ExoPlayer}, as the {@link VideoComponent} methods are
part of the
* @deprecated Use {@link ExoPlayer}, as the {@link VideoComponent} methods are
defined by that
* interface.
* interface.
*/
*/
@Nullable
@Nullable
...
@@ -855,15 +858,19 @@ public interface ExoPlayer extends Player {
...
@@ -855,15 +858,19 @@ public interface ExoPlayer extends Player {
VideoComponent
getVideoComponent
();
VideoComponent
getVideoComponent
();
/**
/**
* @deprecated Use {@link Player}, as the {@link TextComponent} methods are
a part of the {@link
* @deprecated Use {@link Player}, as the {@link TextComponent} methods are
defined by that
*
Player interface}
.
*
interface
.
*/
*/
@Nullable
@Nullable
@Deprecated
@Deprecated
TextComponent
getTextComponent
();
TextComponent
getTextComponent
();
/** Returns the component of this player for playback device, or null if it's not supported. */
/**
* @deprecated Use {@link Player}, as the {@link DeviceComponent} methods are defined by that
* interface.
*/
@Nullable
@Nullable
@Deprecated
DeviceComponent
getDeviceComponent
();
DeviceComponent
getDeviceComponent
();
/**
/**
...
...
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