setPlaybackTime method
- double time
Set the playback time of the current song in the queue.
Implementation
Future<bool> setPlaybackTime(double time) async {
if (Platform.isIOS) {
bool result = await playerChannel
.invokeMethod('setPlaybackTime', <String, dynamic>{"time": time});
return result;
} else {
throw PlatformException(
code: "Device is not iOS!",
message:
"Currently only iOS is supported. Feel free to contribute to Playify to help support Android.");
}
}