Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

MediaSource.CreateFromStreamReference Method

Definition

Namespace:
Windows.Media.Core

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?