Seek

Jumps to a new playback position.

bool Seek(uint64_t new_time, Error *err = nullptr)
Since
Added since version v4.5.1.

Parameters

new_time
The new playback position to jump to.
err
Output parameter, status or error information. See Error.
  • kRteOk: Success.
  • kRteErrorInvalidOperation:
    • The corresponding internal Player object has been destroyed or is invalid.
    • The opened URL is an RTE URL, which does not support seeking.

Return Values

  • true: Successfully jumped to the playback position.
  • false: Failed to jump.