getAudioMixingCurrentPosition method

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

Gets the playback position (ms) of the music file.

Call this method when you are in a channel.

Note

Call this method after calling startAudioMixing and receiving the audioMixingStateChanged(Playing) callback.

Returns

  • The current playback position of the audio mixing file, if this method call is successful.
  • Error code, if this method call fails.

Implementation

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