Business.DownloadBusiness.GetCodecExtension C# (CSharp) Метод

GetCodecExtension() публичный Метод

Returns the file extension for specified video codec type. To avoid conflicting file names, the codec extension must be different than the final extension.
public GetCodecExtension ( VideoType video ) : string
video VideoType The video type to get file extension for.
Результат string
        public string GetCodecExtension(VideoType video) {
            if (video == VideoType.WebM)
                return ".vp9";
            else if (video == VideoType.Mp4)
                return ".h264";
            else if (video == VideoType.Flash)
                return ".flv";
            else if (video == VideoType.Mobile)
                return "";
            else
                return ".avi";
        }