seek
Seeks and returns when the target frame is on screen, or when a later request replaced this one.
A replaced request is not a failure: the position moved, just not to where this call asked for. Concurrent callers all complete exactly once. PlayerEvent.SeekCompleted carries where the seek landed, which for SeekMode.Precise is the first frame at or after the target.
Parameters
to
a finite position at or after zero. Past the end of the media it is clamped to the end.
Throws
when to is infinite or negative.
when nothing is open, or when the seek had to be aborted because the pipeline could not be brought to a safe boundary in time. An aborted seek changed nothing: playback continues at the old position.
when the source is not seekable.