Commit b688600b by olly Committed by Oliver Woodman

Remove deprecated PlayerView methods

PiperOrigin-RevId: 351365762
parent 89b33ac9
......@@ -6,6 +6,10 @@
* Remove long deprecated symbols:
* `DefaultLoadControl` constructors - Use `DefaultLoadControl.Builder`
instead.
* `PlayerView.setDefaultArtwork(Bitmap)` - Use
`PlayerView.setDefaultArtwork(Drawable)` instead.
* `PlayerView.setShowBuffering(boolean)` - Use
`PlayerView.setShowBuffering(int)` instead.
* Remove deprecated interface `AdaptiveMediaSourceEventListener`. Use
`MediaSourceEventListener` instead.
* Add a `LivePlaybackSpeedControl` component to control the playback speed
......
......@@ -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
* 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
*/
public void setDefaultArtwork(@Nullable Drawable defaultArtwork) {
......@@ -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
* 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
* {@link #SHOW_BUFFERING_NEVER}, {@link #SHOW_BUFFERING_WHEN_PLAYING} and {@link
* #SHOW_BUFFERING_ALWAYS}.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment