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
3a519b53
authored
Jun 11, 2021
by
jaewan
Committed by
Oliver Woodman
Jun 11, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Include remote player cases for reason constants in Player
PiperOrigin-RevId: 378779411
parent
047037e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
library/common/src/main/java/com/google/android/exoplayer2/Player.java
library/common/src/main/java/com/google/android/exoplayer2/Player.java
View file @
3a519b53
...
...
@@ -965,15 +965,15 @@ public interface Player {
})
@interface
DiscontinuityReason
{}
/**
* Automatic playback transition from one period in the timeline to the next without explicit
* interaction by this player. The period index may be the same as it was before the discontinuity
* in case the current period is repeated.
* Automatic playback transition from one period in the timeline to the next. The period index may
* be the same as it was before the discontinuity in case the current period is repeated.
*
* <p>This reason also indicates an automatic transition from the content period to an inserted ad
* period or vice versa.
* period or vice versa. Or a transition caused by another player (e.g. multiple controllers can
* control the same playback on a remote device).
*/
int
DISCONTINUITY_REASON_AUTO_TRANSITION
=
0
;
/** Seek within the current period or to another period
by this player
. */
/** Seek within the current period or to another period. */
int
DISCONTINUITY_REASON_SEEK
=
1
;
/**
* Seek adjustment due to being unable to seek to the requested position or because the seek was
...
...
@@ -997,7 +997,13 @@ public interface Player {
@interface
TimelineChangeReason
{}
/** Timeline changed as a result of a change of the playlist items or the order of the items. */
int
TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED
=
0
;
/** Timeline changed as a result of a dynamic update introduced by the played media. */
/**
* Timeline changed as a result of a source update (e.g. result of a dynamic update by the played
* media).
*
* <p>This reason also indicates a change caused by another player (e.g. multiple controllers can
* control the same playback on the remote device).
*/
int
TIMELINE_CHANGE_REASON_SOURCE_UPDATE
=
1
;
/**
...
...
@@ -1016,7 +1022,12 @@ public interface Player {
@interface
MediaItemTransitionReason
{}
/** The media item has been repeated. */
int
MEDIA_ITEM_TRANSITION_REASON_REPEAT
=
0
;
/** Playback has automatically transitioned to the next media item. */
/**
* Playback has automatically transitioned to the next media item.
*
* <p>This reason also indicates a transition caused by another player (e.g. multiple controllers
* can control the same playback on a remote device).
*/
int
MEDIA_ITEM_TRANSITION_REASON_AUTO
=
1
;
/** A seek to another media item has occurred. */
int
MEDIA_ITEM_TRANSITION_REASON_SEEK
=
2
;
...
...
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