mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 23:00:31 +05:30
11 lines
228 B
Kotlin
11 lines
228 B
Kotlin
package com.github.libretube.extensions
|
|
|
|
import androidx.media3.common.Player
|
|
|
|
/**
|
|
* Forward or rewind by the provided [timeDiff] in milliseconds
|
|
*/
|
|
fun Player.seekBy(timeDiff: Long) {
|
|
seekTo(currentPosition + timeDiff)
|
|
}
|