Exemple #1
0
        string GetScpPath()
        {
            EventHandler <GetPathEventArgs> h = NeedScpPath;

            if (h != null)
            {
                GetPathEventArgs a = new GetPathEventArgs();
                h(this, a);
                return(a.path);
            }
            else
            {
                return(null);
            }
        }
 public virtual string GetAppPath(string encoderApp)
 {
     if (encoderApp == EncoderApp.FFmpeg.ToString())
     {
         return(FFmpegPath);
     }
     else if (encoderApp == EncoderApp.x264.ToString())
     {
         return(X264Path);
     }
     else if (encoderApp == EncoderApp.x265.ToString())
     {
         return(X265Path);
     }
     else
     {
         // Allow specifying custom application paths by handling this event.
         var args = new GetPathEventArgs(encoderApp);
         GetCustomAppPath?.Invoke(this, args);
         return(args.Path);
     }
 }
Exemple #3
0
 string GetScpPath()
 {
     EventHandler<GetPathEventArgs> h = NeedScpPath;
     if (h != null) {
         GetPathEventArgs a = new GetPathEventArgs();
         h(this, a);
         return a.path;
     } else {
         return null;
     }
 }