seek method

Future<bool> seek(
  1. int offsetMicroseconds, [
  2. String? player
])

Seek forward by offset in microseconds (use negative value to seek backward)

Implementation

Future<bool> seek(int offsetMicroseconds, [String? player]) async {
  final offset = offsetMicroseconds > 0
      ? '+$offsetMicroseconds'
      : offsetMicroseconds.toString();
  final args = player != null
      ? ['--player=$player', 'position', offset]
      : ['position', offset];
  return _executor.executeCommandWithArgs(args);
}