Note

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

Access to this page requires authorization. You can try .

MediaSource.CreateFromStream(IRandomAccessStream, String) 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 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


Feedback

Was this page helpful?