Class FileSink
File sink allows for video and audio content to be recorded on the file system on the edge device.
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Media.VideoAnalyzer.Edge.dll
Syntax
public class FileSink : Azure.Media.VideoAnalyzer.Edge.Models.SinkNodeBase
Constructors
FileSink(String, IEnumerable<NodeInput>, String, String, String)
Initializes a new instance of FileSink.
Declaration
public FileSink (string name, System.Collections.Generic.IEnumerable<Azure.Media.VideoAnalyzer.Edge.Models.NodeInput> inputs, string baseDirectoryPath, string fileNamePattern, string maximumSizeMiB);
Parameters
System.String
name
Node name. Must be unique within the topology. |
System.Collections.Generic.IEnumerable<NodeInput>
inputs
An array of upstream node references within the topology to be used as inputs for this node. |
System.String
baseDirectoryPath
Absolute directory path where media files will be stored. |
System.String
fileNamePattern
File name pattern for creating new files when performing event based recording. The pattern must include at least one system variable. |
System.String
maximumSizeMiB
Maximum amount of disk space that can be used for storing files from this sink. Once this limit is reached, the oldest files from this sink will be automatically deleted. |
Exceptions
System.ArgumentNullException
|
Properties
BaseDirectoryPath
Absolute directory path where media files will be stored.
Declaration
public string BaseDirectoryPath { get; set; }
Property Value
System.String
|
FileNamePattern
File name pattern for creating new files when performing event based recording. The pattern must include at least one system variable.
Declaration
public string FileNamePattern { get; set; }
Property Value
System.String
|
MaximumSizeMiB
Maximum amount of disk space that can be used for storing files from this sink. Once this limit is reached, the oldest files from this sink will be automatically deleted.
Declaration
public string MaximumSizeMiB { get; set; }
Property Value
System.String
|