getDuration abstract method

Future<int?> getDuration(
  1. int effectId
)

Gets the duration of the audio effect file.

Return value:

  • >0: Success, the duration of the audio effect file in milliseconds.
  • <0: failed.

Call this API after RTCAudioEffectPlayer.start.

Implementation

Future<int?> getDuration(int effectId);