seekToSeconds method

Future<void> seekToSeconds(
  1. double seconds
)

Precise seek to seconds. Works in both normal and shortDrama modes. Negative values are clamped to 0; values beyond duration are clamped to duration - 0.5 on the native side. No-op during ad playback.

Implementation

Future<void> seekToSeconds(double seconds) =>
    _invoke('seekToSeconds', {'seconds': seconds});