Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG #247

Open
SameetIkram opened this issue Mar 13, 2024 · 2 comments
Open

BUG #247

SameetIkram opened this issue Mar 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@SameetIkram
Copy link

SameetIkram commented Mar 13, 2024

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
@SameetIkram SameetIkram added the bug Something isn't working label Mar 13, 2024
@mattieruth
Copy link
Contributor

Thank you for the report. Unfortunately 0.32.0 has not been supported for some time. I highly recommend you upgrade to the latest. We have re-written much of our local device handling since then and solved many issues.

If you still have issues on the latest, can you provide more information about your setup. For instance, you reference background music. Is this music coming from a participant? Is it a custom audio track? How is it being shared?

@SameetIkram
Copy link
Author

Thank you for your prompt response. Despite regular upgrades, the issues persist even with the latest version. Regarding the background music query, the music played in our application is sourced from an S3 storage and accessed through the Web Audio API for playback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants