Table of Contents

Class SinkFactory

Namespace
VAST.Media
Assembly
VAST.Common.dll

Provides factory methods for creating media sinks based on URI schemes.

public static class SinkFactory
Inheritance
SinkFactory
Inherited Members

Methods

Create(string, SinkParameters)

Creates a new media sink based on the provided URI.

public static IMediaSink Create(string uri, SinkParameters parameters = null)

Parameters

uri string

The URI used to determine what kind of sink should be created. Can be a local or network file path.

parameters SinkParameters

Optional sink configuration parameters.

Returns

IMediaSink

A media sink instance if the protocol is supported; otherwise, null.