sendDTMF method
Implementation
Future<void> sendDTMF(String tones) async {
final senders = await pc!.getSenders();
for (final sender in senders) {
if (sender.track != null && sender.track!.kind == 'audio') {
await sender.dtmfSender.insertDTMF(tones);
return;
}
}
Logs().e('Unable to find a track to send DTMF on');
}