diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-06 23:56:38 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-17 12:57:31 +0200 |
| commit | c8128908da7db78a920452f43b531383bb14c115 (patch) | |
| tree | e06a72e9b38ddbc0de1bc86d28af0fbd96977b6d /src/reel_interop_text_asset.cc | |
| parent | f037f1cc035a1e81b582cfaba6087e693cca9a26 (diff) | |
Support open captions and closed subtitles.
Diffstat (limited to 'src/reel_interop_text_asset.cc')
| -rw-r--r-- | src/reel_interop_text_asset.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/reel_interop_text_asset.cc b/src/reel_interop_text_asset.cc index c43cf37b..0f99b614 100644 --- a/src/reel_interop_text_asset.cc +++ b/src/reel_interop_text_asset.cc @@ -72,6 +72,10 @@ ReelInteropTextAsset::cpl_node_name() const switch (_type) { case TextType::OPEN_SUBTITLE: return "MainSubtitle"; + case TextType::OPEN_CAPTION: + return "cc-cpl:MainCaption"; + case TextType::CLOSED_SUBTITLE: + return "ClosedSubtitle"; case TextType::CLOSED_CAPTION: return "cc-cpl:MainClosedCaption"; } @@ -86,7 +90,9 @@ ReelInteropTextAsset::cpl_node_namespace() const { switch (_type) { case TextType::OPEN_SUBTITLE: + case TextType::CLOSED_SUBTITLE: return {}; + case TextType::OPEN_CAPTION: case TextType::CLOSED_CAPTION: return make_pair("http://www.digicine.com/PROTO-ASDCP-CC-CPL-20070926#", "cc-cpl"); } |
