Playback Config
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
Content copied to clipboard
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)
Content copied to clipboard
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
The ForcedSubtitleCallback that shall be used to overwrite which subtitles are considered forced.
Link copied to clipboard
@SerializedName(value = "autoplay" )
Content copied to clipboard
Link copied to clipboard
@SerializedName(value = "timeShift" )
Content copied to clipboard
Link copied to clipboard
@SerializedName(value = "tunneledPlaybackEnabled" )
Content copied to clipboard
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.