mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-13 01:34:14 +01:00
Renaming to OutputUrlArgument
This commit is contained in:
parent
340400966d
commit
fc2802d5fb
2 changed files with 9 additions and 9 deletions
|
@ -4,15 +4,16 @@
|
||||||
namespace FFMpegCore.Arguments
|
namespace FFMpegCore.Arguments
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents output stream parameter
|
/// Represents outputting to url using supported protocols
|
||||||
|
/// See http://ffmpeg.org/ffmpeg-protocols.html
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class OutputStreamArgument : IOutputArgument
|
public class OutputUrlArgument : IOutputArgument
|
||||||
{
|
{
|
||||||
public readonly string Stream;
|
public readonly string Url;
|
||||||
|
|
||||||
public OutputStreamArgument(string stream)
|
public OutputUrlArgument(string url)
|
||||||
{
|
{
|
||||||
Stream = stream;
|
Url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Post() { }
|
public void Post() { }
|
||||||
|
@ -21,6 +22,6 @@ public void Post() { }
|
||||||
|
|
||||||
public void Pre() { }
|
public void Pre() { }
|
||||||
|
|
||||||
public string Text => Stream;
|
public string Text => Url;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -49,9 +49,8 @@ private FFMpegArguments WithInput(IInputArgument inputArgument, Action<FFMpegArg
|
||||||
}
|
}
|
||||||
|
|
||||||
public FFMpegArgumentProcessor OutputToFile(string file, bool overwrite = true, Action<FFMpegArgumentOptions>? addArguments = null) => ToProcessor(new OutputArgument(file, overwrite), addArguments);
|
public FFMpegArgumentProcessor OutputToFile(string file, bool overwrite = true, Action<FFMpegArgumentOptions>? addArguments = null) => ToProcessor(new OutputArgument(file, overwrite), addArguments);
|
||||||
public FFMpegArgumentProcessor OutputToFile(Uri uri, bool overwrite = true, Action<FFMpegArgumentOptions>? addArguments = null) => ToProcessor(new OutputArgument(uri.AbsolutePath, overwrite), addArguments);
|
public FFMpegArgumentProcessor OutputToUrl(string uri, Action<FFMpegArgumentOptions>? addArguments = null) => ToProcessor(new OutputUrlArgument(uri), addArguments);
|
||||||
public FFMpegArgumentProcessor OutputToStream(string uri, Action<FFMpegArgumentOptions>? addArguments = null) => ToProcessor(new OutputStreamArgument(uri), addArguments);
|
public FFMpegArgumentProcessor OutputToUrl(Uri uri, Action<FFMpegArgumentOptions>? addArguments = null) => ToProcessor(new OutputUrlArgument(uri.ToString()), addArguments);
|
||||||
public FFMpegArgumentProcessor OutputToStream(Uri uri, Action<FFMpegArgumentOptions>? addArguments = null) => ToProcessor(new OutputStreamArgument(uri.ToString()), addArguments);
|
|
||||||
public FFMpegArgumentProcessor OutputToPipe(IPipeSink reader, Action<FFMpegArgumentOptions>? addArguments = null) => ToProcessor(new OutputPipeArgument(reader), addArguments);
|
public FFMpegArgumentProcessor OutputToPipe(IPipeSink reader, Action<FFMpegArgumentOptions>? addArguments = null) => ToProcessor(new OutputPipeArgument(reader), addArguments);
|
||||||
|
|
||||||
private FFMpegArgumentProcessor ToProcessor(IOutputArgument argument, Action<FFMpegArgumentOptions>? addArguments)
|
private FFMpegArgumentProcessor ToProcessor(IOutputArgument argument, Action<FFMpegArgumentOptions>? addArguments)
|
||||||
|
|
Loading…
Reference in a new issue