示例#1
0
 public override string GetExt()
 {
     if (!String.IsNullOrWhiteSpace(fileExtension))
     {
         return(fileExtension);
     }
     return(ExtProvider.GetExtForVideo(RecodeFormat));
 }
示例#2
0
 public override string GetExt()
 {
     if (IsAudio)
     {
         return(ExtProvider.GetExtForAudio(AudioConversionFormat));
     }
     else if (VideoRecodeFormat == VideoRecodeFormat.None)
     {
         if (AudioFormat != null)
         {
             throw new InvalidOperationException("Must specify a VideoRecodeFormat when merging formats.");
         }
         return(VideoFormat?.Extension);
     }
     else
     {
         return(ExtProvider.GetExtForVideo(VideoRecodeFormat));
     }
 }
示例#3
0
 public override string GetExt() => ExtProvider.GetExtForAudio(ConversionFormat);