コード例 #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);