Wasabi ExpressPlay SDK for Embedded Systems  1.23.0
Data Fields
WSB_MediaSourceStreamSelectorInterface Struct Reference

#include <WsbMediaAccess.h>

Data Fields

int(* SelectStream )(const WSB_MediaSourceStreamSelector *self, WSB_MediaType media_type, unsigned int stream_count, const WSB_MediaStreamVariantInfo **streams)
 Callback that is called by the media source in order to select one of several alternative streams. More...
 

Field Documentation

◆ SelectStream

int(* WSB_MediaSourceStreamSelectorInterface::SelectStream) (const WSB_MediaSourceStreamSelector *self, WSB_MediaType media_type, unsigned int stream_count, const WSB_MediaStreamVariantInfo **streams)

Callback that is called by the media source in order to select one of several alternative streams.

Parameters
selfPointer to the WSB_MediaSourceStreamSelector instance that was specified when creating the media source.
media_typeType of the media (audio or video).
stream_countNumber of elements contained in the streams array parameter.
streamsArray 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: