getMusicCurrentPosInMS method

Future<int?> getMusicCurrentPosInMS(
  1. int id
)

Get the current playback progress of background music in milliseconds

Parameters:

id Music track ID

Return: the current playback time in milliseconds will be returned if this API is successfully called; otherwise, -1 will be returned

Implementation

Future<int?> getMusicCurrentPosInMS(int id) async {
  var result = await _channel.invokeMethod('getMusicCurrentPosInMS', {"id": id});
  return V2TXLiveFlutterResult.intValue(result);
}