TrackSelectorHelper
Helper class to do several operations with the MappingTrackSelector selector.
Author
Sergio Martinez - smartinez@brightcove.com
Constructors
Functions
Link copied to clipboard
open fun applySelectionOverride(renderType: Int, selectionOverrideCreator: SelectionOverrideCreator)
Link copied to clipboard
open fun applyTrackSelectionOverrides(renderType: Int, trackSelectionOverrideCreator: TrackSelectionOverrideCreator)
Creates a {#TrackSelectionOverrides} with the TrackSelectionOverrideCreator and the render type.
Link copied to clipboard
Disables the Renderer track.
Link copied to clipboard
Enables the Renderer track.
Link copied to clipboard
Filter the Format list parameter returning only those stored in the device.
Link copied to clipboard
open fun getAudioTracksIndexMap(context: Context, deliveryType: DeliveryType, offline: Boolean): Map<Integer, String>
Creates a map from the Renderer of type TYPE_AUDIO with the track index and the language code.
Link copied to clipboard
Gets the available Format list by type.
Link copied to clipboard
Gets the renderer index.
Link copied to clipboard
Gets the selected audio language if any.
Link copied to clipboard
Selects the audio language in the MappingTrackSelector if available.
Link copied to clipboard
Selects the Brightcove caption in the @MappingTrackSelector if available.
Link copied to clipboard
Link copied to clipboard
Updates the Track Group array.
Link copied to clipboard
Updates the Track Selection array.