Closed xyzbilal closed 2 years ago
adding operation to queue solved my problem.
func insertDTMF(_ tone:String){
var audioSender: RTCRtpSender?
for rtpSender in peerConnection.senders {
if rtpSender.track?.kind == "audio" {
audioSender = rtpSender
}
}
if let audioSender = audioSender {
let queue = OperationQueue()
queue.addOperation({
audioSender.dtmfSender?.insertDtmf(tone, duration: TimeInterval(0.2),interToneGap: TimeInterval(0.5))
})
}
}
Hi, thanks for sharing the solution here. I'm happy that you managed to sort this out
Hi, I m using latest version of webrtc. I successfully make and receive calls but while Im in call I try to send dtmf to other peer but its not working. My other peer is Janus gateway. I have same app on android and it works fine but on ios side, its not working.
this is my handle class that handles webrtc events.
my app uses ios side of this packege for call events https://github.com/jonataslaw/flutter-incall-manager/tree/master/ios and callkit for backround handling.
any idea will be appriciated.