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
b688600b
authored
Jan 12, 2021
by
olly
Committed by
Oliver Woodman
Jan 13, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated PlayerView methods
PiperOrigin-RevId: 351365762
parent
89b33ac9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
25 deletions
RELEASENOTES.md
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java
RELEASENOTES.md
View file @
b688600b
...
@@ -6,6 +6,10 @@
...
@@ -6,6 +6,10 @@
*
Remove long deprecated symbols:
*
Remove long deprecated symbols:
*
`DefaultLoadControl`
constructors - Use
`DefaultLoadControl.Builder`
*
`DefaultLoadControl`
constructors - Use
`DefaultLoadControl.Builder`
instead.
instead.
*
`PlayerView.setDefaultArtwork(Bitmap)`
- Use
`PlayerView.setDefaultArtwork(Drawable)`
instead.
*
`PlayerView.setShowBuffering(boolean)`
- Use
`PlayerView.setShowBuffering(int)`
instead.
*
Remove deprecated interface
`AdaptiveMediaSourceEventListener`
. Use
*
Remove deprecated interface
`AdaptiveMediaSourceEventListener`
. Use
`MediaSourceEventListener`
instead.
`MediaSourceEventListener`
instead.
*
Add a
`LivePlaybackSpeedControl`
component to control the playback speed
*
Add a
`LivePlaybackSpeedControl`
component to control the playback speed
...
...
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java
View file @
b688600b
...
@@ -675,19 +675,6 @@ public class PlayerView extends FrameLayout implements AdsLoader.AdViewProvider
...
@@ -675,19 +675,6 @@ public class PlayerView extends FrameLayout implements AdsLoader.AdViewProvider
* Sets the default artwork to display if {@code useArtwork} is {@code true} and no artwork is
* Sets the default artwork to display if {@code useArtwork} is {@code true} and no artwork is
* present in the media.
* present in the media.
*
*
* @param defaultArtwork the default artwork to display.
* @deprecated use (@link {@link #setDefaultArtwork(Drawable)} instead.
*/
@Deprecated
public
void
setDefaultArtwork
(
@Nullable
Bitmap
defaultArtwork
)
{
setDefaultArtwork
(
defaultArtwork
==
null
?
null
:
new
BitmapDrawable
(
getResources
(),
defaultArtwork
));
}
/**
* Sets the default artwork to display if {@code useArtwork} is {@code true} and no artwork is
* present in the media.
*
* @param defaultArtwork the default artwork to display
* @param defaultArtwork the default artwork to display
*/
*/
public
void
setDefaultArtwork
(
@Nullable
Drawable
defaultArtwork
)
{
public
void
setDefaultArtwork
(
@Nullable
Drawable
defaultArtwork
)
{
...
@@ -780,18 +767,6 @@ public class PlayerView extends FrameLayout implements AdsLoader.AdViewProvider
...
@@ -780,18 +767,6 @@ public class PlayerView extends FrameLayout implements AdsLoader.AdViewProvider
* Sets whether a buffering spinner is displayed when the player is in the buffering state. The
* Sets whether a buffering spinner is displayed when the player is in the buffering state. The
* buffering spinner is not displayed by default.
* buffering spinner is not displayed by default.
*
*
* @deprecated Use {@link #setShowBuffering(int)}
* @param showBuffering Whether the buffering icon is displayed
*/
@Deprecated
public
void
setShowBuffering
(
boolean
showBuffering
)
{
setShowBuffering
(
showBuffering
?
SHOW_BUFFERING_WHEN_PLAYING
:
SHOW_BUFFERING_NEVER
);
}
/**
* Sets whether a buffering spinner is displayed when the player is in the buffering state. The
* buffering spinner is not displayed by default.
*
* @param showBuffering The mode that defines when the buffering spinner is displayed. One of
* @param showBuffering The mode that defines when the buffering spinner is displayed. One of
* {@link #SHOW_BUFFERING_NEVER}, {@link #SHOW_BUFFERING_WHEN_PLAYING} and {@link
* {@link #SHOW_BUFFERING_NEVER}, {@link #SHOW_BUFFERING_WHEN_PLAYING} and {@link
* #SHOW_BUFFERING_ALWAYS}.
* #SHOW_BUFFERING_ALWAYS}.
...
...
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