PlaybackConfig

data class PlaybackConfig(isAutoplayEnabled: Boolean, isMuted: Boolean, isTimeShiftEnabled: Boolean, videoCodecPriority: List<String>, audioCodecPriority: List<String>, isTunneledPlaybackEnabled: Boolean, seekMode: SeekMode, forcedSubtitleCallback: ForcedSubtitleCallback?, audioFilter: MediaFilter, videoFilter: MediaFilter) : Parcelable

Configures the playback behaviour of the player.

Constructors

Link copied to clipboard
fun PlaybackConfig(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
var audioCodecPriority: List<String>

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
var audioFilter: MediaFilter

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

Link copied to clipboard
var forcedSubtitleCallback: ForcedSubtitleCallback? = null

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

Link copied to clipboard
@SerializedName(value = "autoplay")
var isAutoplayEnabled: Boolean = false

Specifies whether autoplay is enabled.

Link copied to clipboard
@SerializedName(value = "muted")
var isMuted: Boolean = false

Specifies if the player should start muted.

Link copied to clipboard
@SerializedName(value = "timeShift")
var isTimeShiftEnabled: Boolean = true

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

Link copied to clipboard
@SerializedName(value = "tunneledPlaybackEnabled")
var isTunneledPlaybackEnabled: Boolean = false

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
var seekMode: SeekMode

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

Link copied to clipboard
var videoCodecPriority: List<String>

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
var videoFilter: MediaFilter

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