Closed mukesh-ebpearls closed 2 years ago
also I'm never reinitializing audioDevice. it's set when i setup the singleton class the first time.
i'm going to file his issue inside twilio-video-ios. closing this issue.
link to the new issue link to issue in twilio-video-ios
TwilioVideo SDK v4.4.0 via cocoapods
In my App i've used TwilioVideoSDK to implement a video call and i need to play dialing tone on callers side after the voip notification is sent successfully till the remote user joins the room or call is ended.
I've also implemented toggling on and off the loudspeaker functionality by implementing the block initializer provided by DefaultAudioDevice inside SDK like this
// loudspeaker state is variable i initialize on my singleton class for twilio implementation to keep track of state if user tries to toggle it while ongoing call. i toggle this state and invoke audioDevice.block and it toggles the speaker as expected
i play dailing tone with function
and stop the playing of tone if call is ended by user or times out with function
the issue is that first time i initiate the call the dialing tone plays from loudspeaker as expected but after i end the call and initiate the second call dialing tone is played through receiver speaker.
I'm not toggling loudspeaker to receiver in between the calls but still the issue exists. is there anything i'm missing? should i disable TwilioSDK audio device before playing the dialing sound?