#include <WsbMediaAccess.h>
Callback that is called by the media source in order to select one of several alternative representations.
- Parameters
-
self | Pointer to the WSB_MediaSourceRepresentationSelector instance that was specified when creating the media source. |
media_type | Type of the media (audio or video). |
representation_count | Number of elements contained in the representations array parameter. |
representations | Array of WSB_MediaRepresentationInfo* pointers, each representing an available representation. |
statistics | Pointer 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: