Skip to content

Commit

Permalink
Remove Demo App Fix for Audio Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacakakpo1 committed Oct 19, 2023
1 parent 011040e commit d87edef
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions TelnyxWebRTCDemo/Extensions/ViewControllerVoIPExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ extension ViewController : VoIPDelegate {
case .CONNECTING:
break
case .RINGING:
self.setCurrentAudioOutput()
break
case .NEW:
break
Expand All @@ -107,7 +106,6 @@ extension ViewController : VoIPDelegate {
if(self.isCallOutGoing()){
self.appDelegate.executeOutGoingCall()
}
self.setCurrentAudioOutput()
break
case .DONE:
self.resetCallStates()
Expand All @@ -119,12 +117,6 @@ extension ViewController : VoIPDelegate {
}
}

func setCurrentAudioOutput(){
if(self.isSpeakerActive){
self.telnyxClient?.setSpeaker()
}
}

func executeCall(callUUID: UUID, completionHandler: @escaping (Call?) -> Void) {
do {
guard let callerName = self.settingsView.callerIdNameLabel.text,
Expand Down

0 comments on commit d87edef

Please sign in to comment.