twilio / video-quickstart-ios

Twilio Video Quickstart for iOS
https://www.twilio.com/docs/api/video
MIT License
457 stars 177 forks source link

Audio Output Mixed to Mono When Microphone in Use #646

Open RykBB opened 2 years ago

RykBB commented 2 years ago

Description

Using the audio examples here, but also trying our own tweaks to them. Before a call we can play stereo MP3s easily and they output to the headphones correctly. However the moment the microphone starts being shared the audio plays the first time correctly, but the subsequent times plays in mono out of both ears

Steps to Reproduce

  1. Load the AudioDevice Example
  2. Use a very obvious stereo track (our test track plays out of one ear then the other)
  3. Trigger the track after the call connects

Code

// Not sure any code needed for this one

Expected Behavior

Audio is played in stereo out of correct side of heaphone

Actual Behavior

Audio is mixed to mono and plays out of both headphones

Reproduces How Often

100%

Logs

Debug level logs are helpful when investigating issues. To enable debug level logging, add the following code to your application:

// no log output, just audio

Versions

Tested on iOS v15.3.1

Video iOS SDK

5.0.0

Xcode

13.2.1

iOS Version

15.3.1

iOS Device

iPad 5th Gen