Package com.theoplayer.android.api.cache
Class CachingPreferredTrackSelection.Builder
-
- All Implemented Interfaces:
public class CachingPreferredTrackSelection.Builder
The builder for the preferred track selection caching parameter.
-
-
Constructor Summary
Constructors Constructor Description CachingPreferredTrackSelection.Builder()
Creates a builder for the CachingPreferredTrackSelection parameter.
-
Method Summary
Modifier and Type Method Description CachingPreferredTrackSelection.Builder
audioTrackSelection(@Nullable() Array<String> audioTrackSelection)
The list of language tags that indicates the preferred audio tracks to be cached. CachingPreferredTrackSelection.Builder
textTrackSelection(@Nullable() Array<String> textTrackSelection)
The list of language tags that indicates the preferred text tracks to be cached. CachingPreferredTrackSelection
build()
Builds the preferred track selection caching parameter. -
-
Method Detail
-
audioTrackSelection
CachingPreferredTrackSelection.Builder audioTrackSelection(@Nullable() Array<String> audioTrackSelection)
The list of language tags that indicates the preferred audio tracks to be cached.
- Setting null or empty array will result to picking the first track from the manifest.
Default: An empty String[].
- Parameters:
audioTrackSelection
- The list of languages to cache.
-
textTrackSelection
CachingPreferredTrackSelection.Builder textTrackSelection(@Nullable() Array<String> textTrackSelection)
The list of language tags that indicates the preferred text tracks to be cached.
- Setting null or empty array will result to picking the first track from the manifest.
Default: An empty String[].
- Parameters:
textTrackSelection
- The list of languages to cache.
-
build
CachingPreferredTrackSelection build()
Builds the preferred track selection caching parameter.
-
-
-
-