Interface IUriRotatable
Defines the contract for a media sink that supports URI rotation, such as a file sink with chunking.
public interface IUriRotatable
Properties
NextUri
Gets or sets the function that returns the next URI to be opened.
Func<string> NextUri { get; set; }
Property Value
Remarks
Either Uri or this property must be specified. This is useful for sinks with dynamically generated URIs or file chunking scenarios. The exact URI syntax depends on the implementation.
RotationPeriod
Gets or sets the rotation period in seconds after which the NextUri function will be called and the sink will be re-created with the newly provided URI.
int RotationPeriod { get; set; }
Property Value
Remarks
A value of 0 means no rotation will occur.
Events
UriRotated
Occurs when the output URI has been rotated to a new destination.
event EventHandler<UriRotatedEventArgs> UriRotated