Partager via


MediaSource.CreateFromStreamReference Méthode

Définition

Crée un instance de MediaSource à partir de l’IRandomAccessStreamReference fourni.

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

Paramètres

stream
IRandomAccessStreamReference

Référence de flux à partir de laquelle MediaSource est créé.

contentType
String

Platform::String

winrt::hstring

Type MIME du contenu du flux.

Retours

Nouvelle source multimédia.

S’applique à