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
7878bf6a
authored
Jul 25, 2018
by
GiuseppePiscopo
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
chore(playlist): reorder message IDs, fix tabbing
parent
cc7f011e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
library/core/src/main/java/com/google/android/exoplayer2/source/ConcatenatingMediaSource.java
library/core/src/main/java/com/google/android/exoplayer2/source/ConcatenatingMediaSource.java
View file @
7878bf6a
...
...
@@ -50,11 +50,11 @@ public class ConcatenatingMediaSource extends CompositeMediaSource<MediaSourceHo
private
static
final
int
MSG_ADD
=
0
;
private
static
final
int
MSG_ADD_MULTIPLE
=
1
;
private
static
final
int
MSG_REMOVE
=
2
;
private
static
final
int
MSG_REMOVE_RANGE
=
200
;
private
static
final
int
MSG_MOVE
=
3
;
private
static
final
int
MSG_CLEAR
=
4
;
private
static
final
int
MSG_NOTIFY_LISTENER
=
5
;
private
static
final
int
MSG_ON_COMPLETION
=
6
;
private
static
final
int
MSG_REMOVE_RANGE
=
3
;
private
static
final
int
MSG_MOVE
=
4
;
private
static
final
int
MSG_CLEAR
=
5
;
private
static
final
int
MSG_NOTIFY_LISTENER
=
6
;
private
static
final
int
MSG_ON_COMPLETION
=
7
;
// Accessed on the app thread.
private
final
List
<
MediaSourceHolder
>
mediaSourcesPublic
;
...
...
@@ -324,7 +324,7 @@ public class ConcatenatingMediaSource extends CompositeMediaSource<MediaSourceHo
/**
* Removes a range of {@link MediaSource}s from the playlist, by specifying an initial index
* (included) and a final index (excluded), and executes a custom action on completion.
.
* (included) and a final index (excluded), and executes a custom action on completion.
*
* <p>Note: when specified range is empty, no actual media source is removed and no exception
* is thrown.
...
...
@@ -349,10 +349,10 @@ public class ConcatenatingMediaSource extends CompositeMediaSource<MediaSourceHo
}
if
(
player
!=
null
)
{
player
.
createMessage
(
this
)
.
setType
(
MSG_REMOVE_RANGE
)
.
setPayload
(
new
MessageData
<>(
fromIndex
,
toIndex
,
actionOnCompletion
))
.
send
();
.
createMessage
(
this
)
.
setType
(
MSG_REMOVE_RANGE
)
.
setPayload
(
new
MessageData
<>(
fromIndex
,
toIndex
,
actionOnCompletion
))
.
send
();
}
else
if
(
actionOnCompletion
!=
null
)
{
actionOnCompletion
.
run
();
}
...
...
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