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
eb946345
authored
Aug 10, 2020
by
samrobinson
Committed by
kim-vde
Aug 17, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Change setBandwidthAllocationCheckpoints naming.
PiperOrigin-RevId: 325786473
parent
6db25cda
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
library/core/src/main/java/com/google/android/exoplayer2/trackselection/AdaptiveTrackSelection.java
library/core/src/main/java/com/google/android/exoplayer2/trackselection/AdaptiveTrackSelection.java
View file @
eb946345
...
@@ -170,7 +170,7 @@ public class AdaptiveTrackSelection extends BaseTrackSelection {
...
@@ -170,7 +170,7 @@ public class AdaptiveTrackSelection extends BaseTrackSelection {
for
(
int
i
=
0
;
i
<
adaptiveSelections
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
adaptiveSelections
.
size
();
i
++)
{
adaptiveSelections
adaptiveSelections
.
get
(
i
)
.
get
(
i
)
.
experimental
_s
etBandwidthAllocationCheckpoints
(
bandwidthCheckpoints
[
i
]);
.
experimental
S
etBandwidthAllocationCheckpoints
(
bandwidthCheckpoints
[
i
]);
}
}
}
}
return
selections
;
return
selections
;
...
@@ -320,9 +320,9 @@ public class AdaptiveTrackSelection extends BaseTrackSelection {
...
@@ -320,9 +320,9 @@ public class AdaptiveTrackSelection extends BaseTrackSelection {
* @param allocationCheckpoints List of checkpoints. Each element must be a long[2], with [0]
* @param allocationCheckpoints List of checkpoints. Each element must be a long[2], with [0]
* being the total bandwidth and [1] being the allocated bandwidth.
* being the total bandwidth and [1] being the allocated bandwidth.
*/
*/
public
void
experimental
_s
etBandwidthAllocationCheckpoints
(
long
[][]
allocationCheckpoints
)
{
public
void
experimental
S
etBandwidthAllocationCheckpoints
(
long
[][]
allocationCheckpoints
)
{
((
DefaultBandwidthProvider
)
bandwidthProvider
)
((
DefaultBandwidthProvider
)
bandwidthProvider
)
.
experimental
_s
etBandwidthAllocationCheckpoints
(
allocationCheckpoints
);
.
experimental
S
etBandwidthAllocationCheckpoints
(
allocationCheckpoints
);
}
}
@CallSuper
@CallSuper
...
@@ -561,7 +561,7 @@ public class AdaptiveTrackSelection extends BaseTrackSelection {
...
@@ -561,7 +561,7 @@ public class AdaptiveTrackSelection extends BaseTrackSelection {
return
previous
[
1
]
+
(
long
)
(
fractionBetweenCheckpoints
*
(
next
[
1
]
-
previous
[
1
]));
return
previous
[
1
]
+
(
long
)
(
fractionBetweenCheckpoints
*
(
next
[
1
]
-
previous
[
1
]));
}
}
/* package */
void
experimental
_s
etBandwidthAllocationCheckpoints
(
/* package */
void
experimental
S
etBandwidthAllocationCheckpoints
(
long
[][]
allocationCheckpoints
)
{
long
[][]
allocationCheckpoints
)
{
Assertions
.
checkArgument
(
allocationCheckpoints
.
length
>=
2
);
Assertions
.
checkArgument
(
allocationCheckpoints
.
length
>=
2
);
this
.
allocationCheckpoints
=
allocationCheckpoints
;
this
.
allocationCheckpoints
=
allocationCheckpoints
;
...
...
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