Dela via


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 Uri

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

Returns

Returns an AdaptiveMediaSourceCreationResult upon successful completion.

Attributes

Remarks

Note

When called from a desktop app that doesn't have package identity (see Features that require package identity), this API doesn't support the ms-appx and ms-resource URI formats.

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 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

Returns an AdaptiveMediaSourceCreationResult upon successful completion.

Attributes

Remarks

Note

When called from a desktop app that doesn't have package identity (see Features that require package identity), this API doesn't support the ms-appx and ms-resource URI formats.

See also

Applies to