You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Playback of local audio either stops or is directed to the receiver from the loudspeaker once a Peer to Peer Room connects. We have a metronome application in our video call and it needs to playback locally and mix with the audio from the incoming client as well.
I'm also seeing local audio fail completely after call is terminated. Is there some audio cleanup code I need to call to enable local audio after disconnecting the Twilio call?
Steps to Reproduce
Start playback of local audio using AVAudioPlayer, playback comes from loud speaker
Start a call and connect with a session
Local audio switches from loud speakers to the receiver automatically and volume decreases.
Code
// TwilioVideo.audioDevice must be assigned prior to any audio or video track creation.
let audioDevice = DefaultAudioDevice()
TwilioVideoSDK.audioDevice = audioDevice
audioDevice.block = {
do {
try AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .videoChat, options: [.mixWithOthers, .defaultToSpeaker])
try AVAudioSession.sharedInstance().overrideOutputAudioPort(.speaker)
} catch {
print(error)
}
}
// Execute the block to apply settings on AVAudioSession
audioDevice.block();
Expected Behavior
Local Audio playback should continue to come out the loudspeaker along with the call audio.
Actual Behavior
Local Audio playback switches to receiver and is barley audible over the call audio.
Reproduces How Often
100%
Versions
All relevant version information for the issue.
Video iOS SDK
4.2.0
Xcode
12.3
iOS Version
14.3
iOS Device
iPad Pro, iPad mini, iPad 8th gen
The text was updated successfully, but these errors were encountered:
Description
Playback of local audio either stops or is directed to the receiver from the loudspeaker once a Peer to Peer Room connects. We have a metronome application in our video call and it needs to playback locally and mix with the audio from the incoming client as well.
I'm also seeing local audio fail completely after call is terminated. Is there some audio cleanup code I need to call to enable local audio after disconnecting the Twilio call?
Steps to Reproduce
Code
// TwilioVideo.audioDevice must be assigned prior to any audio or video track creation.
let audioDevice = DefaultAudioDevice()
TwilioVideoSDK.audioDevice = audioDevice
audioDevice.block = {
do {
try AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .videoChat, options: [.mixWithOthers, .defaultToSpeaker])
try AVAudioSession.sharedInstance().overrideOutputAudioPort(.speaker)
} catch {
print(error)
}
}
Expected Behavior
Local Audio playback should continue to come out the loudspeaker along with the call audio.
Actual Behavior
Local Audio playback switches to receiver and is barley audible over the call audio.
Reproduces How Often
100%
Versions
All relevant version information for the issue.
Video iOS SDK
4.2.0
Xcode
12.3
iOS Version
14.3
iOS Device
iPad Pro, iPad mini, iPad 8th gen
The text was updated successfully, but these errors were encountered: