次の方法で共有


IStreamSelectorStatics::SelectBestStreamAsync method (windows.media.streaming.h)

When implemented queries asynchronously for the best stream.

Syntax

HRESULT SelectBestStreamAsync(
  [in]          ABI::Windows::Storage::IStorageFile                                                   *storageFile,
  [in]          ABI::Windows::Foundation::Collections::IPropertySet                                   *selectorProperties,
  [out, retval] __FIAsyncOperation_1_Windows__CStorage__CStreams__CIRandomAccessStreamWithContentType **value
);

Parameters

[in] storageFile

Windows.Storage.StorageFile

[in] selectorProperties

An IPropertySet containing any of the following allowed values.

  • STREAM_SELECTOR_PROPERTY_BEST_URL_ONLY
  • STREAM_SELECTOR_PROPERTY_HTTP_ONLY
  • STREAM_SELECTOR_PROPERTY_LINK_BANDWIDTH
  • STREAM_SELECTOR_PROPERTY_PREFER_NO_TRANSCODING
  • STREAM_SELECTOR_PROPERTY_MAX_HEIGHT
  • STREAM_SELECTOR_PROPERTY_MAX_WIDTH

[out, retval] value

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Requirements

Requirement Value
Target Platform Windows
Header windows.media.streaming.h

See also

IStreamSelectorStatics