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
fb97fca0
authored
Apr 17, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Handle dynamic appearance/disappearance of ID3 track in HLS.
parent
5f74226d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
library/src/main/java/com/google/android/exoplayer/extractor/ts/TsExtractor.java
library/src/main/java/com/google/android/exoplayer/extractor/ts/TsExtractor.java
View file @
fb97fca0
...
@@ -231,6 +231,10 @@ public final class TsExtractor implements Extractor {
...
@@ -231,6 +231,10 @@ public final class TsExtractor implements Extractor {
// Skip the descriptors.
// Skip the descriptors.
data
.
skipBytes
(
programInfoLength
);
data
.
skipBytes
(
programInfoLength
);
// Setup an ID3 track regardless of whether there's a corresponding entry, in case one
// appears intermittently during playback. See b/20261500.
Id3Reader
id3Reader
=
new
Id3Reader
(
output
.
track
(
TS_STREAM_TYPE_ID3
));
int
entriesSize
=
sectionLength
-
9
/* Size of the rest of the fields before descriptors */
int
entriesSize
=
sectionLength
-
9
/* Size of the rest of the fields before descriptors */
-
programInfoLength
-
4
/* CRC size */
;
-
programInfoLength
-
4
/* CRC size */
;
while
(
entriesSize
>
0
)
{
while
(
entriesSize
>
0
)
{
...
@@ -261,7 +265,7 @@ public final class TsExtractor implements Extractor {
...
@@ -261,7 +265,7 @@ public final class TsExtractor implements Extractor {
seiReader
);
seiReader
);
break
;
break
;
case
TS_STREAM_TYPE_ID3:
case
TS_STREAM_TYPE_ID3:
pesPayloadReader
=
new
Id3Reader
(
output
.
track
(
TS_STREAM_TYPE_ID3
))
;
pesPayloadReader
=
id3Reader
;
break
;
break
;
}
}
...
...
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