#include <WsbMediaAccess.h>
◆ SelectStream
Callback that is called by the media source in order to select one of several alternative streams.
- Parameters
-
self | Pointer to the WSB_MediaSourceStreamSelector instance that was specified when creating the media source. |
media_type | Type of the media (audio or video). |
stream_count | Number of elements contained in the streams array parameter. |
streams | Array of WSB_MediaStreamVariantInfo* pointers, each representing an available stream |
- Returns
- If a stream is selected, this function must return an integer between 0 and stream_count-1, as the index of the stream selected amongst the streams in the array. If this function is unable to select a stream, the value WSB_MEDIA_SOURCE_USE_DEFAULT_SELECTOR may be returned to indicate that the default selection logic should apply. If this function finds that none of the streams are acceptable, it should return WSB_MEDIA_SOURCE_NO_COMPATIBLE_SELECTION (this will cause the media source to stop).
The documentation for this struct was generated from the following file: