internal static string FormatToName(this MovieRecorderSettings.VideoRecorderOutputFormat format) { switch (format) { case MovieRecorderSettings.VideoRecorderOutputFormat.MP4: return("H.264 MP4"); case MovieRecorderSettings.VideoRecorderOutputFormat.WebM: return("VP8 WebM"); case MovieRecorderSettings.VideoRecorderOutputFormat.MOV: return("ProRes QuickTime"); default: throw new ArgumentOutOfRangeException($"Unexpected video format {format}"); } }
internal static string FormatToName(this MovieRecorderSettings.VideoRecorderOutputFormat format) { return(format.ToString()); }