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
dfec0338
authored
May 09, 2020
by
Arnold
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add minimum constraints (width, height, frame rate, bitrate) to DefaultTrackSelector.
parent
99b62a24
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
library/core/src/main/java/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.java
library/core/src/test/java/com/google/android/exoplayer2/trackselection/DefaultTrackSelectorTest.java
library/core/src/main/java/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.java
View file @
dfec0338
This diff is collapsed.
Click to expand it.
library/core/src/test/java/com/google/android/exoplayer2/trackselection/DefaultTrackSelectorTest.java
View file @
dfec0338
...
...
@@ -149,16 +149,20 @@ public final class DefaultTrackSelectorTest {
/* maxVideoHeight= */
1
,
/* maxVideoFrameRate= */
2
,
/* maxVideoBitrate= */
3
,
/* minVideoWidth= */
4
,
/* minVideoHeight= */
5
,
/* minVideoFrameRate= */
6
,
/* minVideoBitrate= */
7
,
/* exceedVideoConstraintsIfNecessary= */
false
,
/* allowVideoMixedMimeTypeAdaptiveness= */
true
,
/* allowVideoNonSeamlessAdaptiveness= */
false
,
/* viewportWidth= */
4
,
/* viewportHeight= */
5
,
/* viewportWidth= */
8
,
/* viewportHeight= */
9
,
/* viewportOrientationMayChange= */
true
,
// Audio
/* preferredAudioLanguage= */
"en"
,
/* maxAudioChannelCount= */
6
,
/* maxAudioBitrate= */
7
,
/* maxAudioChannelCount= */
10
,
/* maxAudioBitrate= */
11
,
/* exceedAudioConstraintsIfNecessary= */
false
,
/* allowAudioMixedMimeTypeAdaptiveness= */
true
,
/* allowAudioMixedSampleRateAdaptiveness= */
false
,
...
...
@@ -167,7 +171,7 @@ public final class DefaultTrackSelectorTest {
/* preferredTextLanguage= */
"de"
,
/* preferredTextRoleFlags= */
C
.
ROLE_FLAG_CAPTION
,
/* selectUndeterminedTextLanguage= */
true
,
/* disabledTextTrackSelectionFlags= */
8
,
/* disabledTextTrackSelectionFlags= */
12
,
// General
/* forceLowestBitrate= */
false
,
/* forceHighestSupportedBitrate= */
true
,
...
...
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