getAudioTrackCount method

  1. @override
Future<int?> getAudioTrackCount()

Gets the audio track index of the current music file.

Since v4.2.0

Note:

Returns

  • ≥ 0: The audio track index of the current music file, if this method call succeeds.
  • < 0: Failure.

Implementation

@override
Future<int?> getAudioTrackCount() {
  return _invokeMethod('getAudioTrackCount');
}