PSA: Deprecation of the VoEDtmf APIs

230 views
Skip to first unread message

Fredrik Solenberg

unread,
Feb 24, 2016, 4:46:27 AM2/24/16
to discuss-webrtc
In reference to the previous announcement about the future of the low-level VoiceEngine APIs, there is now a CL uploaded which will completely remove the VoEDtmf APIs.

DTMF functionality is still supported through PeerConnection::CreateDtmfSender() and the DtmfSenderInterface.

If you need to send DTMF using a lower-level API, you will have to do use webrtc::AudioSendStream::SendTelephoneEvent(). While AudioSendStream is currently WIP (and thus likely to go through some change), it is what PeerConnection uses for this purpose.

Since nobody has expressed that they rely on VoEDtmf following the announcement from October last year, I expect this won't cause any grief. OTOH, if it does, and you decide now is the time to climb out from under the blanket, get in touch so we can discuss the alternatives.

Otherwise, I'm landing the CL on 3/7.

Caragea Silviu

unread,
Feb 24, 2016, 8:00:26 AM2/24/16
to discuss-webrtc
Hello,

The DTMF tones are not played locally. I can hear them on the remote side but not on the local one. Not sure if it's a problem or this is the expected behavior.

To do this using VoEDtmf was very simple, just use the PlayDtmfTone(event, duration).

What alternatives are now to this problem ?

Silviu

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/1501f60e-b7bc-4cb5-9de2-25d9a1fbabf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fredrik Solenberg

unread,
Feb 25, 2016, 11:03:08 AM2/25/16
to discuss-webrtc
That's right; DTMFSender does not play back locally, and this is by design. For one thing, it can be considered a security risk as someone could conceivably eavesdrop and hear what phone number, PIN code, etc, is being entered.

If do you require local feedback, visual, sound or else, you can use the DtmfSenderObserverInterface and trigger anything you like in the OnToneChange() callback. For the time being you will have to use platform specific APIs at your disposal if you want sound output. Another option is to use the VoEFile interface but then be warned that this will be deprecated too, in the not-too-distant future, however it could help smooth the transition.

- Fredrik

Fredrik Solenberg

unread,
Mar 7, 2016, 11:22:20 AM3/7/16
to discuss-webrtc
FYI: The CL to remove VoEDtmf will be landed today or tomorrow.

- Fredrik
Reply all
Reply to author
Forward
0 new messages