Compartir a través de


MediaSource.CreateFromStream(IRandomAccessStream, String) Método

Definición

Crea una instancia de MediaSource a partir del IRandomAccessStream proporcionado.

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

Parámetros

stream
IRandomAccessStream

Secuencia a partir de la que se crea mediaSource .

contentType
String

Platform::String

winrt::hstring

Tipo MIME del contenido de la secuencia.

Devoluciones

Nuevo origen multimedia.

Se aplica a