AdaptiveMediaSource.CreateFromUriAsync Method

Definition

Overloads

CreateFromUriAsync(Uri)

Asynchronously creates a AdaptiveMediaSource object from the Uniform Resource Identifier (URI) of the source.

CreateFromUriAsync(Uri, HttpClient)

Asynchronously creates a AdaptiveMediaSource object from the Uniform Resource Identifier (URI) of the source.

CreateFromUriAsync(Uri)

Asynchronously creates a AdaptiveMediaSource object from the Uniform Resource Identifier (URI) of the source.

public:
 static IAsyncOperation<AdaptiveMediaSourceCreationResult ^> ^ CreateFromUriAsync(Uri ^ uri);
/// [Windows.Foundation.Metadata.Overload("CreateFromUriAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<AdaptiveMediaSourceCreationResult> CreateFromUriAsync(Uri const & uri);
[Windows.Foundation.Metadata.Overload("CreateFromUriAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AdaptiveMediaSourceCreationResult> CreateFromUriAsync(System.Uri uri);
function createFromUriAsync(uri)
Public Shared Function CreateFromUriAsync (uri As Uri) As IAsyncOperation(Of AdaptiveMediaSourceCreationResult)

Parameters

uri
Uri

T he Uniform Resource Identifier (URI) of the source.

Returns

IAsyncOperation<AdaptiveMediaSourceCreationResult>

Returns an AdaptiveMediaSourceCreationResult upon successful completion.

Attributes

See also

Applies to

CreateFromUriAsync(Uri, HttpClient)

Asynchronously creates a AdaptiveMediaSource object from the Uniform Resource Identifier (URI) of the source.

public:
 static IAsyncOperation<AdaptiveMediaSourceCreationResult ^> ^ CreateFromUriAsync(Uri ^ uri, HttpClient ^ httpClient);
/// [Windows.Foundation.Metadata.Overload("CreateFromUriWithDownloaderAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<AdaptiveMediaSourceCreationResult> CreateFromUriAsync(Uri const & uri, HttpClient const & httpClient);
[Windows.Foundation.Metadata.Overload("CreateFromUriWithDownloaderAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AdaptiveMediaSourceCreationResult> CreateFromUriAsync(System.Uri uri, HttpClient httpClient);
function createFromUriAsync(uri, httpClient)
Public Shared Function CreateFromUriAsync (uri As Uri, httpClient As HttpClient) As IAsyncOperation(Of AdaptiveMediaSourceCreationResult)

Parameters

uri
Uri

The Uniform Resource Identifier (URI) of the source.

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

IAsyncOperation<AdaptiveMediaSourceCreationResult>

Returns an AdaptiveMediaSourceCreationResult upon successful completion.

Attributes

See also

Applies to