Wasabi ExpressPlay SDK for Embedded Systems  1.10
Data Fields
WSB_MediaSourceRepresentationSelectorInterface Struct Reference

#include <WsbMediaAccess.h>

Data Fields

int(* SelectRepresentation )(const WSB_MediaSourceRepresentationSelector *self, WSB_MediaType media_type, unsigned int representation_count, const WSB_MediaRepresentationInfo **representations, const WSB_MediaSourceStatistics *statistics)
 Callback that is called by the media source in order to select one of several alternative representations. More...
 

Field Documentation

int(* WSB_MediaSourceRepresentationSelectorInterface::SelectRepresentation)(const WSB_MediaSourceRepresentationSelector *self, WSB_MediaType media_type, unsigned int representation_count, const WSB_MediaRepresentationInfo **representations, const WSB_MediaSourceStatistics *statistics)

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

Parameters
selfPointer to the WSB_MediaSourceRepresentationSelector instance that was specified when creating the media source.
media_typeType of the media (audio or video).
representation_countNumber of elements contained in the representations array parameter.
representationsArray of WSB_MediaRepresentationInfo* pointers, each representing an available representation.
statisticsPointer to a WSB_MediaSourceStatistics structure providing statistics about the media source.
Returns
If a representation is selected, this function must return an integer between 0 and representation_count-1, as the index of the representation selected amongst the representations in the array. If this function is unable to select a representation, 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 representations are acceptable, it should return WSB_MEDIA_SOURCE_NO_COMPATIBLE_SELECTION (this will cause the media source to stop).
See Also
WSB_MediaSourceStatistics

The documentation for this struct was generated from the following file: