getMusicCurrentPosInMS method
Get the current playback progress of background music in milliseconds
Parameters:
id
Music track ID
Returned value: the current playback time in milliseconds will be returned if this API is successfully called; otherwise, -1
will be returned
Platform not supported:
- web
Implementation
Future<int?> getMusicCurrentPosInMS(int id) {
return _channel.invokeMethod('getMusicCurrentPosInMS', {"id": id});
}