toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CaptionSourceType.ancillary:
      return 'ANCILLARY';
    case CaptionSourceType.dvbSub:
      return 'DVB_SUB';
    case CaptionSourceType.embedded:
      return 'EMBEDDED';
    case CaptionSourceType.scte20:
      return 'SCTE20';
    case CaptionSourceType.scc:
      return 'SCC';
    case CaptionSourceType.ttml:
      return 'TTML';
    case CaptionSourceType.stl:
      return 'STL';
    case CaptionSourceType.srt:
      return 'SRT';
    case CaptionSourceType.smi:
      return 'SMI';
    case CaptionSourceType.teletext:
      return 'TELETEXT';
    case CaptionSourceType.nullSource:
      return 'NULL_SOURCE';
    case CaptionSourceType.imsc:
      return 'IMSC';
  }
}