seek
Jumps to a new playback position.
int seek(long newPos);
If you call seek after playback is completed (i.e., after receiving the onPlayerStateChanged callback with state PLAYER_STATE_PLAYBACK_COMPLETED or PLAYER_STATE_PLAYBACK_ALL_LOOPS_COMPLETED), the SDK starts playback from the specified position and triggers the onPlayerStateChanged callback with state PLAYER_STATE_PLAYING.
If you call seek while playback is paused, the SDK jumps to the specified position after a successful call. To resume playback, call resume or play.
Timing
You can call this method before or after joining a channel.
Parameters
- newPos
- The new playback position in milliseconds.
Return Values
- 0: Success.
- < 0: Failure.