共用方式為


AdaptiveMediaSource.CreateFromStreamAsync 方法

定義

多載

CreateFromStreamAsync(IInputStream, Uri, String)

以非同步方式從提供的輸入資料流程建立 AdaptiveMediaSource 物件。

CreateFromStreamAsync(IInputStream, Uri, String, HttpClient)

以非同步方式從提供的輸入資料流程建立 AdaptiveMediaSource 物件。

CreateFromStreamAsync(IInputStream, Uri, String)

以非同步方式從提供的輸入資料流程建立 AdaptiveMediaSource 物件。

public:
 static IAsyncOperation<AdaptiveMediaSourceCreationResult ^> ^ CreateFromStreamAsync(IInputStream ^ stream, Uri ^ uri, Platform::String ^ contentType);
/// [Windows.Foundation.Metadata.Overload("CreateFromStreamAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<AdaptiveMediaSourceCreationResult> CreateFromStreamAsync(IInputStream const& stream, Uri const& uri, winrt::hstring const& contentType);
[Windows.Foundation.Metadata.Overload("CreateFromStreamAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AdaptiveMediaSourceCreationResult> CreateFromStreamAsync(IInputStream stream, System.Uri uri, string contentType);
function createFromStreamAsync(stream, uri, contentType)
Public Shared Function CreateFromStreamAsync (stream As IInputStream, uri As Uri, contentType As String) As IAsyncOperation(Of AdaptiveMediaSourceCreationResult)

參數

stream
IInputStream

從中建立 AdaptiveMediaSource 的輸入資料流程。

uri
Uri Uri

來源的統一資源識別項 (URI) 。 調 適型MediaSource 會使用此專案來解析相對 URI。

contentType
String

Platform::String

winrt::hstring

識別來源 MIME 內容類型的字串。 這可以是 HTTP 即時串流 (HLS) 或透過 HTTP (DASH 的動態自適性串流) 內容類型。

傳回

成功完成時會傳回 AdaptiveMediaSourceCreationResult

屬性

另請參閱

適用於

CreateFromStreamAsync(IInputStream, Uri, String, HttpClient)

以非同步方式從提供的輸入資料流程建立 AdaptiveMediaSource 物件。

public:
 static IAsyncOperation<AdaptiveMediaSourceCreationResult ^> ^ CreateFromStreamAsync(IInputStream ^ stream, Uri ^ uri, Platform::String ^ contentType, HttpClient ^ httpClient);
/// [Windows.Foundation.Metadata.Overload("CreateFromStreamWithDownloaderAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<AdaptiveMediaSourceCreationResult> CreateFromStreamAsync(IInputStream const& stream, Uri const& uri, winrt::hstring const& contentType, HttpClient const& httpClient);
[Windows.Foundation.Metadata.Overload("CreateFromStreamWithDownloaderAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AdaptiveMediaSourceCreationResult> CreateFromStreamAsync(IInputStream stream, System.Uri uri, string contentType, HttpClient httpClient);
function createFromStreamAsync(stream, uri, contentType, httpClient)
Public Shared Function CreateFromStreamAsync (stream As IInputStream, uri As Uri, contentType As String, httpClient As HttpClient) As IAsyncOperation(Of AdaptiveMediaSourceCreationResult)

參數

stream
IInputStream

從中建立 AdaptiveMediaSource 的輸入資料流程。

uri
Uri Uri

來源的統一資源識別項 (URI) 。 調 適型MediaSource 會使用此專案來解析相對 URI。

contentType
String

Platform::String

winrt::hstring

識別來源 MIME 內容類型的字串。 這可以是 HTTP 即時串流 (HLS) 或透過 HTTP (DASH 的動態自適性串流) 內容類型。

httpClient
HttpClient

AdaptiveMediaSource應該用來下載資源的HttpClient實例。 這可讓您指定要求的自訂 HTTP 標頭。

傳回

成功完成時會傳回 AdaptiveMediaSourceCreationResult

屬性

另請參閱

適用於