MediaPlayerSlider

Functions

Link copied to clipboard

Gets the current playback position in seconds

Link copied to clipboard
fun getDurationInSeconds(): Double?

Gets the total duration of the media in seconds

Link copied to clipboard
fun getProgress(): Float?

Gets the current progress percentage

Link copied to clipboard
fun setPositionInSeconds(seconds: Double): Boolean

Sets the playback position in seconds

Link copied to clipboard
fun setProgress(progress: Float): Boolean

Sets the position by percentage