seekToRelativePosition static method
Adds the given relativeMilliseconds
to the current playback time.
This will add relativeMilliseconds
to the current value of the playback
time. This can also be negative to rewind the current track.
Throws a PlatformException if seeking failed
Throws a MissingPluginException if the method is not implemented on
the native platforms.
Implementation
static Future seekToRelativePosition(
{required int relativeMilliseconds}) async {
try {
await _channel.invokeMethod(MethodNames.seekToRelativePosition,
{ParamNames.relativeMilliseconds: relativeMilliseconds});
} on Exception catch (e) {
_logException(MethodNames.seekToRelativePosition, e);
rethrow;
}
}