mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-16 07:10:29 +05:30
9 lines
356 B
Kotlin
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))
|