Commit 89b33ac9 by olly Committed by Oliver Woodman

Remove deprecated DefaultLoadControl constructors

PiperOrigin-RevId: 351361628
parent 500b4f89
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
### dev-v2 (not yet released) ### dev-v2 (not yet released)
* Core library: * Core library:
* Remove long deprecated symbols:
* `DefaultLoadControl` constructors - Use `DefaultLoadControl.Builder`
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
......
...@@ -263,14 +263,8 @@ public class DefaultLoadControl implements LoadControl { ...@@ -263,14 +263,8 @@ public class DefaultLoadControl implements LoadControl {
/** Constructs a new instance, using the {@code DEFAULT_*} constants defined in this class. */ /** Constructs a new instance, using the {@code DEFAULT_*} constants defined in this class. */
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public DefaultLoadControl() { public DefaultLoadControl() {
this(new DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE));
}
/** @deprecated Use {@link Builder} instead. */
@Deprecated
public DefaultLoadControl(DefaultAllocator allocator) {
this( this(
allocator, new DefaultAllocator(true, C.DEFAULT_BUFFER_SEGMENT_SIZE),
DEFAULT_MIN_BUFFER_MS, DEFAULT_MIN_BUFFER_MS,
DEFAULT_MAX_BUFFER_MS, DEFAULT_MAX_BUFFER_MS,
DEFAULT_BUFFER_FOR_PLAYBACK_MS, DEFAULT_BUFFER_FOR_PLAYBACK_MS,
...@@ -281,28 +275,6 @@ public class DefaultLoadControl implements LoadControl { ...@@ -281,28 +275,6 @@ public class DefaultLoadControl implements LoadControl {
DEFAULT_RETAIN_BACK_BUFFER_FROM_KEYFRAME); 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( protected DefaultLoadControl(
DefaultAllocator allocator, DefaultAllocator allocator,
int minBufferMs, int minBufferMs,
......
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