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

9 lines
357 B
Kotlin
Raw Normal View History

2022-12-22 15:47:34 +05:30
package com.github.libretube.extensions
2023-05-15 20:51:49 +05:30
import androidx.media3.exoplayer.trackselection.DefaultTrackSelector
2022-12-22 15:47:34 +05:30
2023-05-15 20:51:49 +05:30
@androidx.annotation.OptIn(androidx.media3.common.util.UnstableApi::class)
inline fun DefaultTrackSelector.updateParameters(
actions: DefaultTrackSelector.Parameters.Builder.() -> Unit,
) = setParameters(buildUponParameters().apply(actions))