Open
Description
I am using version 0.32.0
Expected behavior
I expect that when muting a participant in my application, the audio ducking should stop, allowing the background music to play smoothly.
Describe the bug (unexpected behavior)
The issue is that I need to mute all the unmuted participants first to remove the audio ducking. If all the participants are muted, there is no audio ducking, and the music plays smoothly in the background. However, as soon as I unmute a participant, the music starts to duck for that participant. Even if I mute that participant again, the ducking does not stop until all participants are muted. The built-in audio ducking feature in iOS has no impact, whether it's enabled or disabled.
Steps to reproduce
- Mute all participants.
const { audioTrackState } = useTileParticipant(localUserSessionId); const audioTrack = useMemo(() => audioTrackState?.track, [audioTrackState]); dailyCallObject.setLocalAudio(false); if (audioTrack) audioTrack?.stop();
- Observe smooth background music playback.
- Unmute a participant.
dailyCallObject.setLocalAudio(true);
if (userDevices.microphones.length > 0) {
let microphoneIndex = userDevices.microphones.findIndex((microphone) => microphone.selected);
microphoneIndex = microphoneIndex !== -1 ? microphoneIndex : 0;
const selectedMicrophone = userDevices.cameras[microphoneIndex].device.deviceId;
if (selectedMicrophone) {
userDevices.setMicrophone(selectedMicrophone);
}
} - Observe audio ducking for the unmuted participant.
- Mute the previously unmuted participant.
- Observe that audio ducking persists until all participants are muted.
System information
- Device: iPhone 12 pro max
- OS, version: IOS 17.4
- Browser, version: Safari
Activity