mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Remove deprecated DefaultLoadControl constructors
PiperOrigin-RevId: 351361628
This commit is contained in:
parent
500b4f89a8
commit
89b33ac9c0
2 changed files with 4 additions and 29 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue