onSeek method

@valid since 3.53 @detail callback @author songxiaomeng.19 @brief Seeking the audio data based on the set starting position and offset to help SDK read and analyze data.
When you call openWithCustomSource{@link #IMediaPlayer#openWithCustomSource} API to play the in-memory audio data you input, or when you call setPosition{@link #IMediaPlayer#setPosition} to set the starting position of audio playing, this callback will be trigerred and you need to seek the audio data accorring to the value of offset and whence. @param offset The offset of the target position relative to the starting position, in bytes. The value can be positive or negative. @param whence The starting position of the seeking. Refer to MediaPlayerCustomSourceSeekWhence{@link #MediaPlayerCustomSourceSeekWhence} for more details. @return If the seeking succeeded, the information on the final adjusted play position after seeking or the size of the audio data will be returned.
If the seeking failed, -1 will be returned.

Implementation

FutureOr<long> onSeek(
    long offset, MediaPlayerCustomSourceSeekWhence whence) async {
  throw UnimplementedError();
}