getTotalDuration abstract method

Future<int?> getTotalDuration()

Gets the duration of the media file.

Return value:

  • >0: The duration of the media file in milliseconds.
  • <0: Failure.

Call this API only when audio is mixing.

Implementation

Future<int?> getTotalDuration();