Class HlsPlaybackConfiguration.Builder
-
- All Implemented Interfaces:
public class HlsPlaybackConfiguration.Builder
The builder for the HLS playback configuration.
-
-
Constructor Summary
Constructors Constructor Description HlsPlaybackConfiguration.Builder()
Creates a builder for the HLS playback configuration.
-
Method Summary
Modifier and Type Method Description HlsPlaybackConfiguration.Builder
useLegacy(@Nullable() Boolean useLegacy)
Sets whether this source should be played using the legacy HLS pipeline. HlsPlaybackConfiguration
build()
Builds the HLS playback configuration. -
-
Method Detail
-
useLegacy
@NonNull() HlsPlaybackConfiguration.Builder useLegacy(@Nullable() Boolean useLegacy)
Sets whether this source should be played using the legacy HLS pipeline.
- If `true`, always use the legacy HLS pipeline.
- If `false`, never use the legacy HLS pipeline.
- If `null` (default), use the modern HLS pipeline if available, otherwise fall back to the legacy HLS pipeline.
- Parameters:
useLegacy
- Whether this source should be played using the legacy HLS pipeline.
-
build
@NonNull() HlsPlaybackConfiguration build()
Builds the HLS playback configuration.
-
-
-
-