twilio / twilio-voice-react-native

Other
72 stars 27 forks source link

when make an outgoing call, speaker audio is selected, and there is no sound #371

Closed devBjn closed 1 month ago

devBjn commented 4 months ago

Issue

The first time logged in to the app, I saw that the audio type speaker was default and there was no sounde. At ringing listener, I already set the earpiece but it's not updated.

  outgoingCall.callEvent.on("ringing", async () => {
      console.log("ringing");
      if (selectedDevice.type === "speaker") {
        await earpiece.select();
      }
    });

    outgoingCall.callEvent.on("connected", async () => {
      console.log("connected");

      setTimerRunning(true);
      handleCallEvent(
        outgoingCall?.callEvent?.getState(),
        outgoingCall?.callEvent?.isMuted()
      );
    });
Screenshot 2024-06-01 at 22 19 51

Pre-submission Checklist

Description

A clear and concise description of what the issue is.

Reproduction Steps

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected Behavior

A clear and concise description of what you expected to happen.

Actual Behavior

What actually happens.

Reproduction Frequency

Is the reproducibility of the issue deterministic? If not, what percentage of the time does the issue occur? In how many attempts was the issue observed?

Screenshots

If applicable, add screenshots to help explain your problem.

Software and Device Information

Please complete the following information.

Additional Context

Add any other context about the problem here.

mhuynh5757 commented 4 months ago

Hi @devBjn, thanks for bringing this to our attention. Please fill out the entire Issue Template, including the device info and development environment. It helps us with debugging and addressing your issue.

bobiechen-twilio commented 3 months ago

@devBjn as Michael mentioned, we would need more info from you for diagnosis, in this case the debug message from Xcode would definitely help us gain more insights in case any error happened while switching the audio source. Thanks.

mhuynh5757 commented 1 month ago

Hello @devBjn I would like to close this issue as stale for now. Please feel free to add the additional info and reopen the issue if you need further assistance.