Windows.Media.Streaming.Adaptive.AdaptiveMediaSource.CreateFromStreamAsync

February 8, 2017 ยท View on GitHub

-description

Asynchronously creates a AdaptiveMediaSource object from the provided input stream.

-parameters

-param stream

The input stream from which the AdaptiveMediaSource is created.

-param uri

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

-param contentType

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.

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

-remarks

-examples

-see-also

CreateFromStreamAsync(IInputStream, Uri, String)