AdaptiveMediaSource.CreateFromUriAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
- 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.