Bagikan melalui


MediaSource.CreateFromStream(IRandomAccessStream, String) Metode

Definisi

Membuat instans MediaSource dari IRandomAccessStream yang disediakan.

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

Parameter

stream
IRandomAccessStream

Aliran tempat MediaSource dibuat.

contentType
String

Platform::String

winrt::hstring

Jenis MIME dari konten aliran.

Mengembalikan

Sumber media baru.

Berlaku untuk