FakeTrackSelector
@UnstableApi
class FakeTrackSelector : DefaultTrackSelector
A fake MappingTrackSelector that returns FakeTrackSelections.
Summary
Nested types |
|---|
|
A factory for the |
Public constructors |
|---|
FakeTrackSelector( |
FakeTrackSelector(mayReuseTrackSelection: Boolean) |
Public functions |
|
|---|---|
(Mutable)List<FakeTrackSelection!>! |
Returns list of all |
Protected functions |
|
|---|---|
Array<@NullableType ExoTrackSelection.Definition!>! |
selectAllTracks(Called from |
Inherited Constants |
|---|
Inherited functions |
||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
Inherited properties |
||||
|---|---|---|---|---|
|
||||
Public constructors
FakeTrackSelector
FakeTrackSelector(
fakeTrackSelectionFactory: FakeTrackSelector.FakeTrackSelectionFactory!
)
| Parameters | |
|---|---|
fakeTrackSelectionFactory: FakeTrackSelector.FakeTrackSelectionFactory! |
The |
FakeTrackSelector
FakeTrackSelector(mayReuseTrackSelection: Boolean)
| Parameters | |
|---|---|
mayReuseTrackSelection: Boolean |
Whether this |
Public functions
getAllTrackSelections
fun getAllTrackSelections(): (Mutable)List<FakeTrackSelection!>!
Returns list of all FakeTrackSelections that this track selector has made so far.
Protected functions
selectAllTracks
protected fun selectAllTracks(
mappedTrackInfo: MappingTrackSelector.MappedTrackInfo!,
@RendererCapabilities.Capabilities rendererFormatSupports: Array<Array<IntArray!>!>!,
@RendererCapabilities.AdaptiveSupport rendererMixedMimeTypeAdaptationSupports: IntArray!,
params: DefaultTrackSelector.Parameters!
): Array<@NullableType ExoTrackSelection.Definition!>!
Called from selectTracks to make a track selection for each renderer, prior to overrides and disabled flags being applied.
The implementation should not account for overrides and disabled flags. Track selections generated by this method will be overridden to account for these properties.
If selection parameters include audioOffloadPreferences with audioOffloadMode set to AUDIO_OFFLOAD_MODE_REQUIRED then only audio tracks will be selected. If no audio track is supported in offload, then no track will be selected.
| Parameters | |
|---|---|
mappedTrackInfo: MappingTrackSelector.MappedTrackInfo! |
Mapped track information. |
@RendererCapabilities.Capabilities rendererFormatSupports: Array<Array<IntArray!>!>! |
The |
@RendererCapabilities.AdaptiveSupport rendererMixedMimeTypeAdaptationSupports: IntArray! |
The |
params: DefaultTrackSelector.Parameters! |
The parameters to use for the track selection. |
| Returns | |
|---|---|
Array<@NullableType ExoTrackSelection.Definition!>! |
The |
| Throws | |
|---|---|
androidx.media3.exoplayer.ExoPlaybackException |
If an error occurs while selecting the tracks. |