Remove deprecated PlayerView methods
PiperOrigin-RevId: 351365762
This commit is contained in:
parent
89b33ac9c0
commit
b688600b45
@ -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
|
||||
|
@ -671,19 +671,6 @@ public class PlayerView extends FrameLayout implements AdsLoader.AdViewProvider
|
||||
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
|
||||
* 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
|
||||
* buffering spinner is not displayed by default.
|
||||
|
Loading…
x
Reference in New Issue
Block a user