Jaa


MediaSource.CreateFromStreamReference Method

Definition

Creates an instance of MediaSource from the provided IRandomAccessStreamReference.

public:
 static MediaSource ^ CreateFromStreamReference(IRandomAccessStreamReference ^ stream, Platform::String ^ contentType);
 static MediaSource CreateFromStreamReference(IRandomAccessStreamReference const& stream, winrt::hstring const& contentType);
public static MediaSource CreateFromStreamReference(IRandomAccessStreamReference stream, string contentType);
function createFromStreamReference(stream, contentType)
Public Shared Function CreateFromStreamReference (stream As IRandomAccessStreamReference, contentType As String) As MediaSource

Parameters

stream
IRandomAccessStreamReference

The stream reference from which the MediaSource is created.

contentType
String

Platform::String

winrt::hstring

The MIME type of the contents of the stream.

Returns

The new media source.

Applies to