public HTMLToImagePlugin() { _HTMLPath = new PluginPropertyString("HTMLPath", this, false); _DestinationPath = new PluginPropertyFilePath("DestinationPath", this); _ShouldOwerwriteExistingFile = new PluginPropertyValueType<bool>("ShouldOwerwriteExistingFile", this, false); _Width = new PluginProperty<int>("Width", this); _Height = new PluginProperty<int>("Height", this); _Delay = new PluginProperty<int>("Delay", this, 0); _ShouldWaitForJavascript = new PluginProperty<bool>("ShouldWaitForJavascript", this, false); }
public CutVideoFramePlugin() { _FFmpegFilePath = new PluginPropertyFilePath("FFmpegFilePath", this, "ffmpeg.exe"); _VideoPosition = new PluginPropertyString("Position", this, "", true); _Width = new PluginPropertyValueType<uint>("Width", this, 0); _Height = new PluginPropertyValueType<uint>("Height", this, 0); _ShouldKeepAspectRatio = new PluginPropertyValueType<bool>("ShouldKeepAspectRatio", this, true); }
public CarbonTranscodePlugin() { _CarbonServerHost = new PluginPropertyString("CarbonServerHost", this, "localhost"); _CarbonServerPort = new PluginPropertyValueType<ushort>("CarbonServerPort", this, 1101); _CarbonPresetGUID = new PluginPropertyString("CarbonPresetGUID", this); _MaxWidth = new PluginPropertyValueType<uint>("MaxWidth", this); _MaxWidth.AddIsInRangeTest(maxWidth => maxWidth > 0); _MaxHeight = new PluginPropertyValueType<uint>("MaxHeight", this); _MaxHeight.AddIsInRangeTest(maxHeight => maxHeight > 0); _MinAudioBitRate = new PluginPropertyValueType<uint>("MinAudioBitRate", this); _MinAudioBitRate.AddIsInRangeTest(minAudioBitRate => minAudioBitRate > 0); _MinVideoBitRate = new PluginPropertyValueType<uint>("MinVideoBitRate", this); _MinVideoBitRate.AddIsInRangeTest(minVideoBitRate => minVideoBitRate > 0); _MaxFrameRate = new PluginPropertyValueType<ushort>("MaxFrameRate", this); _MaxFrameRate.AddIsInRangeTest(maxFrameRate => maxFrameRate > 0); }