Table of Contents

Interface IUriRotatable

Namespace
VAST.Media
Assembly
VAST.Common.dll

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

Func<string>

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

int

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

Event Type

EventHandler<UriRotatedEventArgs>