Skip to content

BUG #247

Open
Open
BUG#247
@SameetIkram

Description

@SameetIkram

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

  1. Mute all participants.
    const { audioTrackState } = useTileParticipant(localUserSessionId);
    const audioTrack = useMemo(() => audioTrackState?.track, [audioTrackState]);
    dailyCallObject.setLocalAudio(false);
    if (audioTrack) audioTrack?.stop();
  2. Observe smooth background music playback.
  3. 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);
    }
    }
  4. Observe audio ducking for the unmuted participant.
  5. Mute the previously unmuted participant.
  6. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions