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
43e6e161
authored
Aug 24, 2016
by
Rik Heijdens
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Implemented PAC and Midrow code handling for EIA-608 captions
parent
f6fdcee9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
library/src/main/java/com/google/android/exoplayer2/text/eia608/Eia608Decoder.java
library/src/main/java/com/google/android/exoplayer2/text/eia608/Eia608Subtitle.java
library/src/main/java/com/google/android/exoplayer2/text/eia608/Eia608Decoder.java
View file @
43e6e161
This diff is collapsed.
Click to expand it.
library/src/main/java/com/google/android/exoplayer2/text/eia608/Eia608Subtitle.java
View file @
43e6e161
...
...
@@ -15,10 +15,9 @@
*/
package
com
.
google
.
android
.
exoplayer2
.
text
.
eia608
;
import
android.text.TextUtils
;
import
com.google.android.exoplayer2.text.Cue
;
import
com.google.android.exoplayer2.text.Subtitle
;
import
java.util.Collections
;
import
java.util.List
;
/**
...
...
@@ -26,13 +25,10 @@ import java.util.List;
*/
/* package */
final
class
Eia608Subtitle
implements
Subtitle
{
private
final
String
text
;
private
final
List
<
Cue
>
cues
;
/**
* @param text The subtitle text.
*/
public
Eia608Subtitle
(
String
text
)
{
this
.
text
=
text
;
public
Eia608Subtitle
(
List
<
Cue
>
cues
)
{
this
.
cues
=
cues
;
}
@Override
...
...
@@ -52,11 +48,7 @@ import java.util.List;
@Override
public
List
<
Cue
>
getCues
(
long
timeUs
)
{
if
(
TextUtils
.
isEmpty
(
text
))
{
return
Collections
.
emptyList
();
}
else
{
return
Collections
.
singletonList
(
new
Cue
(
text
));
}
return
cues
;
}
}
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