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
fe733428
authored
Apr 16, 2020
by
vadim
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add saving subtitle track name for MatroskaExtractor
parent
2dafb8fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractor.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/DefaultTrackNameProvider.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractor.java
View file @
fe733428
...
@@ -2139,6 +2139,7 @@ public class MatroskaExtractor implements Extractor {
...
@@ -2139,6 +2139,7 @@ public class MatroskaExtractor implements Extractor {
Format
format
=
Format
format
=
formatBuilder
formatBuilder
.
setId
(
trackId
)
.
setId
(
trackId
)
.
setLabel
(
name
)
.
setSampleMimeType
(
mimeType
)
.
setSampleMimeType
(
mimeType
)
.
setMaxInputSize
(
maxInputSize
)
.
setMaxInputSize
(
maxInputSize
)
.
setLanguage
(
language
)
.
setLanguage
(
language
)
...
...
library/ui/src/main/java/com/google/android/exoplayer2/ui/DefaultTrackNameProvider.java
View file @
fe733428
...
@@ -48,6 +48,11 @@ public class DefaultTrackNameProvider implements TrackNameProvider {
...
@@ -48,6 +48,11 @@ public class DefaultTrackNameProvider implements TrackNameProvider {
buildLanguageOrLabelString
(
format
),
buildLanguageOrLabelString
(
format
),
buildAudioChannelString
(
format
),
buildAudioChannelString
(
format
),
buildBitrateString
(
format
));
buildBitrateString
(
format
));
}
else
if
(
trackType
==
C
.
TRACK_TYPE_TEXT
)
{
trackName
=
joinWithSeparator
(
buildLabelString
(
format
),
buildLanguageString
(
format
));
}
else
{
}
else
{
trackName
=
buildLanguageOrLabelString
(
format
);
trackName
=
buildLanguageOrLabelString
(
format
);
}
}
...
...
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