setSkipIntervals method
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');
}
}