enablePlaybackDucking method
@detail api
@author majun.lvhiei
@brief Enables/disables the playback ducking function. This function is usually used in scenarios where short videos or music will be played simultaneously during RTC calls.
With the function on, if remote voice is detected, the local media volume of RTC will be lowered to ensure the clarity of the remote voice. If remote voice disappears, the local media volume of RTC restores.
@param enable Whether to enable playback ducking:
- YES: Yes
- NO: No
@return
- 0: Success.
- < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details
Implementation
FutureOr<int> enablePlaybackDucking(BOOL enable) async {
return await nativeCall('enablePlaybackDucking:', [enable]);
}