Exemplo n.º 1
0
 public override string GetExt()
 {
     if (!String.IsNullOrWhiteSpace(fileExtension))
     {
         return(fileExtension);
     }
     return(ExtProvider.GetExtForVideo(RecodeFormat));
 }
Exemplo n.º 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));
     }
 }