PlaybackConfig

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

Configures the playback behaviour of the player.

Constructors

PlaybackConfig
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)

Properties

audioCodecPriority
Link copied to clipboard
var audioCodecPriority: List<String>
The audio codec priority where the first index has the highest priority.
forcedSubtitleCallback
Link copied to clipboard
var forcedSubtitleCallback: ForcedSubtitleCallback? = null
The ForcedSubtitleCallback that shall be used to overwrite which subtitles are considered forced.
isAutoplayEnabled
Link copied to clipboard
@SerializedName(value = autoplay)
var isAutoplayEnabled: Boolean = false
Specifies whether autoplay is enabled.
isMuted
Link copied to clipboard
@SerializedName(value = muted)
var isMuted: Boolean = false
Specifies if the player should start muted.
isTimeShiftEnabled
Link copied to clipboard
@SerializedName(value = timeShift)
var isTimeShiftEnabled: Boolean = true
Specifies if time shifting (during live streaming) should be enabled.
isTunneledPlaybackEnabled
Link copied to clipboard
@SerializedName(value = tunneledPlaybackEnabled)
var isTunneledPlaybackEnabled: Boolean = false
Specifies if tunneled playback should be enabled.
seekMode
Link copied to clipboard
var seekMode: SeekMode
The SeekMode that will be used.
videoCodecPriority
Link copied to clipboard
var videoCodecPriority: List<String>
The video codec priority where the index has the highest priority.

Inherited functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)