getAudioTrackCount method

FutureOr<int> getAudioTrackCount()

@detail api @brief Gets the track count of the current media file. @return + >= 0:Success. Return the track count of the current media file. - < 0:Failed. @note - Call this API only when audio is mixing. - This API is valid for audio file, not PCM data.

Implementation

FutureOr<int> getAudioTrackCount() async {
  return await nativeCall('getAudioTrackCount', []);
}