Class SinkFactory
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
uristringThe URI used to determine what kind of sink should be created. Can be a local or network file path.
parametersSinkParametersOptional sink configuration parameters.
Returns
- IMediaSink
A media sink instance if the protocol is supported; otherwise,
null.