共用方式為


MediaSource.CreateFromStreamReference 方法

定義

從提供的IRandomAccessStreamReference建立MediaSource的實例。

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

參數

stream
IRandomAccessStreamReference

建立 MediaSource的來來源資料流參考。

contentType
String

Platform::String

winrt::hstring

資料流程內容的 MIME 類型。

傳回

新的媒體來源。

適用於