Remove deprecated PlayerView methods

PiperOrigin-RevId: 351365762
This commit is contained in:
olly 2021-01-12 15:21:58 +00:00 committed by Oliver Woodman
parent 89b33ac9c0
commit b688600b45
2 changed files with 4 additions and 25 deletions

View File

@ -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

View File

@ -671,19 +671,6 @@ public class PlayerView extends FrameLayout implements AdsLoader.AdViewProvider
return defaultArtwork; return 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.
* @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 * Sets the default artwork to display if {@code useArtwork} is {@code true} and no artwork is
* present in the media. * present in the media.
@ -776,18 +763,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
* 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 * 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.