Beispiel #1
0
 public override string GetExt()
 {
     if (!String.IsNullOrWhiteSpace(fileExtension))
     {
         return(fileExtension);
     }
     return(ExtProvider.GetExtForVideo(RecodeFormat));
 }
Beispiel #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));
     }
 }
Beispiel #3
0
 public override string GetExt() => ExtProvider.GetExtForAudio(ConversionFormat);