toCmfcAudioDuration method

CmfcAudioDuration toCmfcAudioDuration()

Implementation

CmfcAudioDuration toCmfcAudioDuration() {
  switch (this) {
    case 'DEFAULT_CODEC_DURATION':
      return CmfcAudioDuration.defaultCodecDuration;
    case 'MATCH_VIDEO_DURATION':
      return CmfcAudioDuration.matchVideoDuration;
  }
  throw Exception('$this is not known in enum CmfcAudioDuration');
}