PlaybackConfig

data class PlaybackConfig(var isAutoplayEnabled: Boolean = false, var isMuted: Boolean = false, var isTimeShiftEnabled: Boolean = true, var videoCodecPriority: List<String> = listOf("av1", "hevc", "hvc", "vp9", "avc"), var audioCodecPriority: List<String> = listOf("ec-3", "mp4a.a6", "ac-3", "mp4a.a5", "mp4a.40"), var isTunneledPlaybackEnabled: Boolean = false, var seekMode: SeekMode = SeekMode.Exact, var forcedSubtitleCallback: ForcedSubtitleCallback? = null, var audioFilter: MediaFilter = MediaFilter.Loose, var videoFilter: MediaFilter = MediaFilter.Loose) : Parcelable

Configures the playback behaviour of the player.

Constructors

Link copied to clipboard
constructor(isAutoplayEnabled: Boolean = false, isMuted: Boolean = false, isTimeShiftEnabled: Boolean = true, videoCodecPriority: List<String> = listOf("av1", "hevc", "hvc", "vp9", "avc"), audioCodecPriority: List<String> = listOf("ec-3", "mp4a.a6", "ac-3", "mp4a.a5", "mp4a.40"), isTunneledPlaybackEnabled: Boolean = false, seekMode: SeekMode = SeekMode.Exact, forcedSubtitleCallback: ForcedSubtitleCallback? = null, audioFilter: MediaFilter = MediaFilter.Loose, videoFilter: MediaFilter = MediaFilter.Loose)

Properties

Link copied to clipboard

The audio codec priority where the first index has the highest priority. For a single SourceConfig this can be overwritten using SourceConfig.audioCodecPriority.

Link copied to clipboard

Specifies how strictly potentially unsupported audio tracks and qualities are filtered out of a playback session.

Link copied to clipboard

The ForcedSubtitleCallback that shall be used to overwrite which subtitles are considered forced.

Link copied to clipboard

Specifies whether autoplay is enabled.

Link copied to clipboard

Specifies if the player should start muted.

Link copied to clipboard

Specifies if time shifting (during live streaming) should be enabled.

Link copied to clipboard

Specifies if tunneled playback should be enabled. This property is ignored for Android versions below LOLLIPOP (21) or when VR sources are scheduled.

Link copied to clipboard

The SeekMode that will be used. Default is SeekMode.Exact.

Link copied to clipboard

The video codec priority where the index has the highest priority. For a single SourceConfig this can be overwritten using SourceConfig.videoCodecPriority.

Link copied to clipboard

Specifies how strictly potentially unsupported video qualities are filtered out of a playback session.