seek


Description:

public void seek (double position)

Request the player to perform a seek operation.

This function will use [enum@Clapper.PlayerSeekMethod.NORMAL] as a seeking method. If you wish to specify what method to use per seeking request, use [method@Clapper.Player.seek_custom] instead.

Note that seeking requests are per selected media item. Seeking requests will be ignored if player is stopped. You need to at least call [method@Clapper.Player.pause] before seeking and then your requested seek will be handled if item could be played.

Parameters:

this

a Player

position

a decimal number with position to seek to (in seconds)