enablePlaybackDucking abstract method

Future<int?> enablePlaybackDucking(
  1. bool enable
)

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.

Return value:

With the function on, if remote voice is detected, the local media volume will be lowered to ensure the clarity of the remote voice. If remote voice disappears, the local media volume restores.

Implementation

Future<int?> enablePlaybackDucking(bool enable);