toHlsAudioTrackType method
Implementation
HlsAudioTrackType toHlsAudioTrackType() {
switch (this) {
case 'ALTERNATE_AUDIO_AUTO_SELECT_DEFAULT':
return HlsAudioTrackType.alternateAudioAutoSelectDefault;
case 'ALTERNATE_AUDIO_AUTO_SELECT':
return HlsAudioTrackType.alternateAudioAutoSelect;
case 'ALTERNATE_AUDIO_NOT_AUTO_SELECT':
return HlsAudioTrackType.alternateAudioNotAutoSelect;
case 'AUDIO_ONLY_VARIANT_STREAM':
return HlsAudioTrackType.audioOnlyVariantStream;
}
throw Exception('$this is not known in enum HlsAudioTrackType');
}