MediaSource.CreateFromStreamReference(IRandomAccessStreamReference, String) MediaSource.CreateFromStreamReference(IRandomAccessStreamReference, String) MediaSource.CreateFromStreamReference(IRandomAccessStreamReference, String) MediaSource.CreateFromStreamReference(IRandomAccessStreamReference, String) MediaSource.CreateFromStreamReference(IRandomAccessStreamReference, String) Method

Definition

Creates an instance of MediaSource from the provided IRandomAccessStreamReference.

public : static MediaSource CreateFromStreamReference(IRandomAccessStreamReference stream, Platform::String contentType)
static MediaSource CreateFromStreamReference(IRandomAccessStreamReference stream, winrt::hstring contentType) const;
public static MediaSource CreateFromStreamReference(IRandomAccessStreamReference stream, String contentType)
Public Shared Function CreateFromStreamReference(stream As IRandomAccessStreamReference, contentType As String) As MediaSource
var mediaSource = Windows.Media.Core.MediaSource.createFromStreamReference(stream, contentType);

Parameters

contentType
String String String

The MIME type of the contents of the stream.

Returns