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
fd803a39
authored
Aug 06, 2019
by
olly
Committed by
Oliver Woodman
Aug 09, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Further MediaPeriod.selectTracks documentation tweak
PiperOrigin-RevId: 261917229
parent
a9b93d7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
library/core/src/main/java/com/google/android/exoplayer2/source/MediaPeriod.java
library/core/src/main/java/com/google/android/exoplayer2/source/MediaPeriod.java
View file @
fd803a39
...
@@ -113,15 +113,17 @@ public interface MediaPeriod extends SequenceableLoader {
...
@@ -113,15 +113,17 @@ public interface MediaPeriod extends SequenceableLoader {
* corresponding flag in {@code streamResetFlags} will be set to true. This flag will also be set
* corresponding flag in {@code streamResetFlags} will be set to true. This flag will also be set
* if a new sample stream is created.
* if a new sample stream is created.
*
*
* <p>Note that previously
received {@link TrackSelection TrackSelections} are no longer valid
and
* <p>Note that previously
passed {@link TrackSelection TrackSelections} are no longer valid,
and
*
references need to be replaced even if the corresponding {@link SampleStream} is kept
.
*
any references to them must be updated to point to the new selections
.
*
*
* <p>This method is only called after the period has been prepared.
* <p>This method is only called after the period has been prepared.
*
*
* @param selections The renderer track selections.
* @param selections The renderer track selections.
* @param mayRetainStreamFlags Flags indicating whether the existing sample stream can be retained
* @param mayRetainStreamFlags Flags indicating whether the existing sample stream can be retained
* for each selection. A {@code true} value indicates that the selection is unchanged, and
* for each track selection. A {@code true} value indicates that the selection is equivalent
* that the caller does not require that the sample stream be recreated.
* to the one that was previously passed, and that the caller does not require that the sample
* stream be recreated. If a retained sample stream holds any references to the track
* selection then they must be updated to point to the new selection.
* @param streams The existing sample streams, which will be updated to reflect the provided
* @param streams The existing sample streams, which will be updated to reflect the provided
* selections.
* selections.
* @param streamResetFlags Will be updated to indicate new sample streams, and sample streams that
* @param streamResetFlags Will be updated to indicate new sample streams, and sample streams that
...
...
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