Method

ValentMediaPlayerseek

unstable since: 1.0

Declaration [src]

void
valent_media_player_seek (
  ValentMediaPlayer* player,
  double offset
)

Description [src]

Seek in the current media item by offset seconds.

A negative value seeks back. If this would mean seeking back further than the start of the track, the position is set to 0. If the value passed in would mean seeking beyond the end of the track, acts like a call to valent_media_player_seek().

If ValentMediaPlayer:flags does not include VALENT_MEDIA_ACTION_SEEK, calling this method should have no effect.

Available since: 1.0

Parameters

offset

Type: double

Number of seconds to seek forward.