Dela via


MediaSource.CreateFromStream(IRandomAccessStream, String) Method

Definition

Creates an instance of MediaSource from the provided IRandomAccessStream.

public:
 static MediaSource ^ CreateFromStream(IRandomAccessStream ^ stream, Platform::String ^ contentType);
 static MediaSource CreateFromStream(IRandomAccessStream const& stream, winrt::hstring const& contentType);
public static MediaSource CreateFromStream(IRandomAccessStream stream, string contentType);
function createFromStream(stream, contentType)
Public Shared Function CreateFromStream (stream As IRandomAccessStream, contentType As String) As MediaSource

Parameters

stream
IRandomAccessStream

The stream 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