Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
89b33ac9
authored
Jan 12, 2021
by
olly
Committed by
Oliver Woodman
Jan 13, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove deprecated DefaultLoadControl constructors
PiperOrigin-RevId: 351361628
parent
500b4f89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
29 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/DefaultLoadControl.java
RELEASENOTES.md
View file @
89b33ac9
...
@@ -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
...
...
library/core/src/main/java/com/google/android/exoplayer2/DefaultLoadControl.java
View file @
89b33ac9
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment