getEffectCurrentPosition abstract method

Future<int> getEffectCurrentPosition(
  1. int soundId
)

Gets the playback progress of the specified sound effect file.

This method must be called after playEffect.

  • soundId The ID of the sound effect. Each sound effect has a unique ID.

Returns If the method call succeeds, returns the playback progress of the specified sound effect file (milliseconds). < 0: The method call fails. See Error Codes for details and resolution suggestions.

Implementation

Future<int> getEffectCurrentPosition(int soundId);