MediaSource.CreateFromStream(IRandomAccessStream, String) MediaSource.CreateFromStream(IRandomAccessStream, String) MediaSource.CreateFromStream(IRandomAccessStream, String) MediaSource.CreateFromStream(IRandomAccessStream, String) 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 stream, winrt::hstring contentType) const;
public static MediaSource CreateFromStream(IRandomAccessStream stream, String contentType)
Public Shared Function CreateFromStream(stream As IRandomAccessStream, contentType As String) As MediaSource
var mediaSource = Windows.Media.Core.MediaSource.createFromStream(stream, contentType);

Parameters

stream
IRandomAccessStream IRandomAccessStream IRandomAccessStream

The stream from which the MediaSource is created.

contentType
String String String

The MIME type of the contents of the stream.

Returns