getTotalDuration method
@detail api @brief Gets the duration of the media file. @return - >0: Success, the duration of the media file in milliseconds. - < 0: Failed. @note - Call this API only when audio is mixing. - The API is valid for audio file, not PCM data.
Implementation
FutureOr<int> getTotalDuration() async {
return await nativeCall('getTotalDuration', []);
}