setSkipIntervals method

  1. @override
Future<void> setSkipIntervals({
  1. int forwardSeconds = 10,
  2. int backwardSeconds = 10,
})
override

Sets the preferred skip intervals for rewind (backward) and fast-forward (forward) commands.

This is currently supported on iOS and macOS.

Implementation

@override
Future<void> setSkipIntervals({int forwardSeconds = 10, int backwardSeconds = 10}) async {
  try {
    await methodChannel.invokeMethod('setSkipIntervals', {
      'forwardSeconds': forwardSeconds,
      'backwardSeconds': backwardSeconds,
    });
  } on PlatformException catch (e) {
    debugPrint('setSkipIntervals is not supported on this platform: $e');
  } on MissingPluginException catch (e) {
    debugPrint('setSkipIntervals is not supported on this platform: $e');
  } catch (e) {
    debugPrint('setSkipIntervals error: $e');
  }
}