getPosition abstract method

Future<int?> getPosition()

Gets the playback progress of the media file.

Return value:

  • >0: The playback progress of media file in ms.
  • <0: Failure.

Call this API only when audio is mixing.

Implementation

Future<int?> getPosition();