toCaptionSourceType method
Implementation
CaptionSourceType toCaptionSourceType() {
switch (this) {
case 'ANCILLARY':
return CaptionSourceType.ancillary;
case 'DVB_SUB':
return CaptionSourceType.dvbSub;
case 'EMBEDDED':
return CaptionSourceType.embedded;
case 'SCTE20':
return CaptionSourceType.scte20;
case 'SCC':
return CaptionSourceType.scc;
case 'TTML':
return CaptionSourceType.ttml;
case 'STL':
return CaptionSourceType.stl;
case 'SRT':
return CaptionSourceType.srt;
case 'SMI':
return CaptionSourceType.smi;
case 'TELETEXT':
return CaptionSourceType.teletext;
case 'NULL_SOURCE':
return CaptionSourceType.nullSource;
case 'IMSC':
return CaptionSourceType.imsc;
}
throw Exception('$this is not known in enum CaptionSourceType');
}