LibreTube/app/src/main/java/com/github/libretube/extensions/UpdateParameters.kt

9 lines
356 B
Kotlin

package com.github.libretube.extensions
import androidx.media3.exoplayer.trackselection.DefaultTrackSelector
@androidx.annotation.OptIn(androidx.media3.common.util.UnstableApi::class)
inline fun DefaultTrackSelector.updateParameters(
actions: DefaultTrackSelector.Parameters.Builder.() -> Unit
) = setParameters(buildUponParameters().apply(actions))