Jaa


AdaptiveMediaSource.CreateFromStreamAsync Method

Definition

Overloads

CreateFromStreamAsync(IInputStream, Uri, String)

Asynchronously creates a AdaptiveMediaSource object from the provided input stream.

CreateFromStreamAsync(IInputStream, Uri, String, HttpClient)

Asynchronously creates a AdaptiveMediaSource object from the provided input stream.

CreateFromStreamAsync(IInputStream, Uri, String)

Asynchronously creates a AdaptiveMediaSource object from the provided input stream.

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)

Parameters

stream
IInputStream

The input stream from which the AdaptiveMediaSource is created.

uri
Uri Uri

The Uniform Resource Identifier (URI) of the source. This is used by the AdaptiveMediaSource to resolve relative URIs.

contentType
String

Platform::String

winrt::hstring

A string that identifies the MIME content type of the source. This can be an Http Live Streaming (HLS) or a Dynamic Adaptive Streaming over HTTP (DASH) content type.

Returns

Returns an AdaptiveMediaSourceCreationResult upon successful completion.

Attributes

See also

Applies to

CreateFromStreamAsync(IInputStream, Uri, String, HttpClient)

Asynchronously creates a AdaptiveMediaSource object from the provided input stream.

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)

Parameters

stream
IInputStream

The input stream from which the AdaptiveMediaSource is created.

uri
Uri Uri

The Uniform Resource Identifier (URI) of the source. This is used by the AdaptiveMediaSource to resolve relative URIs.

contentType
String

Platform::String

winrt::hstring

A string that identifies the MIME content type of the source. This can be an Http Live Streaming (HLS) or a Dynamic Adaptive Streaming over HTTP (DASH) content type.

httpClient
HttpClient

The HttpClient instance that the AdaptiveMediaSource should use for downloading resources. This allows you to specify custom HTTP headers for the requests.

Returns

Returns an AdaptiveMediaSourceCreationResult upon successful completion.

Attributes

See also

Applies to