getTotalDuration abstract method

Future<int> getTotalDuration()

Get the total duration of the current file.

Available since: 2.17.0 Description: Get the total duration of the current file, in milliseconds. When to call: After onMediaDataPublisherFileDataBegin callback.

  • Returns The total duration of the current file.

Implementation

Future<int> getTotalDuration();