/// <summary> /// Add one list of frames to the encoding batch. /// </summary> /// <param name="listFrames">The list of frames to be encoded.</param> /// <param name="param">Encoding parameters.</param> /// <param name="scale">Screen scale.</param> public static void AddItem(List <FrameInfo> listFrames, Parameters param, double scale) { if (_encoder == null) { Start(scale); } if (_encoder == null) { throw new ApplicationException("Error while starting the Encoding window."); } _encoder.Activate(); _encoder.InternalAddItem(listFrames, param); }
/// <summary> /// Add one list of frames to the encoding batch. /// </summary> /// <param name="listFrames">The list of frames to be encoded.</param> /// <param name="param">Encoding parameters.</param> /// <param name="scale">Screen scale.</param> public static void AddItem(List <FrameInfo> listFrames, Parameters param, double scale) { //Show or restore the encoder window. if (_encoder == null) { Start(scale); } else if (_encoder.WindowState == WindowState.Minimized) { _encoder.WindowState = WindowState.Normal; } if (_encoder == null) { throw new ApplicationException("Error while starting the Encoding window."); } _encoder.Activate(); _encoder.InternalAddItem(listFrames, param); }