AdaptiveMediaSource.CreateFromStreamAsync Método

Definição

Sobrecargas

CreateFromStreamAsync(IInputStream, Uri, String)

Cria de forma assíncrona um objeto AdaptiveMediaSource do fluxo de entrada fornecido.

CreateFromStreamAsync(IInputStream, Uri, String, HttpClient)

Cria de forma assíncrona um objeto AdaptiveMediaSource do fluxo de entrada fornecido.

CreateFromStreamAsync(IInputStream, Uri, String)

Cria de forma assíncrona um objeto AdaptiveMediaSource do fluxo de entrada fornecido.

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)

Parâmetros

stream
IInputStream

O fluxo de entrada do qual o AdaptiveMediaSource é criado.

uri
Uri Uri

O URI (Uniform Resource Identifier) da origem. Isso é usado pelo AdaptiveMediaSource para resolve URIs relativos.

contentType
String

Platform::String

winrt::hstring

Uma cadeia de caracteres que identifica o tipo de conteúdo MIME da origem. Pode ser um tipo de conteúdo HLS (Http Live Streaming) ou DASH (Dynamic Adaptive Streaming over HTTP).

Retornos

Retorna um AdaptiveMediaSourceCreationResult após a conclusão bem-sucedida.

Atributos

Confira também

Aplica-se a

CreateFromStreamAsync(IInputStream, Uri, String, HttpClient)

Cria de forma assíncrona um objeto AdaptiveMediaSource do fluxo de entrada fornecido.

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)

Parâmetros

stream
IInputStream

O fluxo de entrada do qual o AdaptiveMediaSource é criado.

uri
Uri Uri

O URI (Uniform Resource Identifier) da origem. Isso é usado pelo AdaptiveMediaSource para resolve URIs relativos.

contentType
String

Platform::String

winrt::hstring

Uma cadeia de caracteres que identifica o tipo de conteúdo MIME da origem. Pode ser um tipo de conteúdo HLS (Http Live Streaming) ou DASH (Dynamic Adaptive Streaming over HTTP).

httpClient
HttpClient

A instância httpClient que o AdaptiveMediaSource deve usar para baixar recursos. Isso permite que você especifique cabeçalhos HTTP personalizados para as solicitações.

Retornos

Retorna um AdaptiveMediaSourceCreationResult após a conclusão bem-sucedida.

Atributos

Confira também

Aplica-se a