getVolume method

FutureOr<int> getVolume(
  1. int effectId
)

@detail api @brief Gets the current volume. @param effectId Audio effect ID @return - >0: Success, the current volume value. - < 0: Failed. @note Call this API after start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config}.

Implementation

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