mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Added Basic CEA-708 caption support to ExoPlayer V2, roughly equivalent to the current state of CEA-608. It's still missing window (and the associated positioning and formatting) support, emulating a 3-line rollup.
Currently this has only been tested with the RawCC container, though it should work with anything that makes use of SeiReader (i.e. MPEG2-TS) with minimal changes to SeiReader. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=134781660
This commit is contained in:
parent
c381093a48
commit
37806ee792
1 changed files with 4 additions and 4 deletions
|
|
@ -654,11 +654,11 @@ public class DashManifestParser extends DefaultHandler
|
||||||
} else if (MimeTypes.isVideo(containerMimeType)) {
|
} else if (MimeTypes.isVideo(containerMimeType)) {
|
||||||
return MimeTypes.getVideoMediaMimeType(codecs);
|
return MimeTypes.getVideoMediaMimeType(codecs);
|
||||||
} else if (MimeTypes.APPLICATION_RAWCC.equals(containerMimeType)) {
|
} else if (MimeTypes.APPLICATION_RAWCC.equals(containerMimeType)) {
|
||||||
// We currently only support CEA-608 through RawCC
|
if (codecs != null) {
|
||||||
if (codecs != null
|
if (codecs.contains("eia608") || codecs.contains("cea608")) {
|
||||||
&& (codecs.contains("eia608") || codecs.contains("cea608"))) {
|
|
||||||
return MimeTypes.APPLICATION_CEA608;
|
return MimeTypes.APPLICATION_CEA608;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
} else if (mimeTypeIsRawText(containerMimeType)) {
|
} else if (mimeTypeIsRawText(containerMimeType)) {
|
||||||
return containerMimeType;
|
return containerMimeType;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue