toInputType method
Implementation
InputType toInputType() {
switch (this) {
case 'UDP_PUSH':
return InputType.udpPush;
case 'RTP_PUSH':
return InputType.rtpPush;
case 'RTMP_PUSH':
return InputType.rtmpPush;
case 'RTMP_PULL':
return InputType.rtmpPull;
case 'URL_PULL':
return InputType.urlPull;
case 'MP4_FILE':
return InputType.mp4File;
case 'MEDIACONNECT':
return InputType.mediaconnect;
case 'INPUT_DEVICE':
return InputType.inputDevice;
case 'AWS_CDI':
return InputType.awsCdi;
}
throw Exception('$this is not known in enum InputType');
}