Remove deprecated DefaultLoadControl constructors

PiperOrigin-RevId: 351361628
This commit is contained in:
olly 2021-01-12 14:51:31 +00:00 committed by Oliver Woodman
parent 500b4f89a8
commit 89b33ac9c0
2 changed files with 4 additions and 29 deletions

View file

@ -3,6 +3,9 @@
### dev-v2 (not yet released)
* Core library:
* Remove long deprecated symbols:
* `DefaultLoadControl` constructors - Use `DefaultLoadControl.Builder`
instead.
* Remove deprecated interface `AdaptiveMediaSourceEventListener`. Use
`MediaSourceEventListener` instead.
* Add a `LivePlaybackSpeedControl` component to control the playback speed

View file

@ -263,14 +263,8 @@ public class DefaultLoadControl implements LoadControl {
/** Constructs a new instance, using the {@code DEFAULT_*} constants defined in this class. */
@SuppressWarnings("deprecation")
public DefaultLoadControl() {
this(new DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE));
}
/** @deprecated Use {@link Builder} instead. */
@Deprecated
public DefaultLoadControl(DefaultAllocator allocator) {
this(
allocator,
new DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE),
DEFAULT_MIN_BUFFER_MS,
DEFAULT_MAX_BUFFER_MS,
DEFAULT_BUFFER_FOR_PLAYBACK_MS,
@ -281,28 +275,6 @@ public class DefaultLoadControl implements LoadControl {
DEFAULT_RETAIN_BACK_BUFFER_FROM_KEYFRAME);
}
/** @deprecated Use {@link Builder} instead. */
@Deprecated
public DefaultLoadControl(
DefaultAllocator allocator,
int minBufferMs,
int maxBufferMs,
int bufferForPlaybackMs,
int bufferForPlaybackAfterRebufferMs,
int targetBufferBytes,
boolean prioritizeTimeOverSizeThresholds) {
this(
allocator,
minBufferMs,
maxBufferMs,
bufferForPlaybackMs,
bufferForPlaybackAfterRebufferMs,
targetBufferBytes,
prioritizeTimeOverSizeThresholds,
DEFAULT_BACK_BUFFER_DURATION_MS,
DEFAULT_RETAIN_BACK_BUFFER_FROM_KEYFRAME);
}
protected DefaultLoadControl(
DefaultAllocator allocator,
int minBufferMs,