Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement RTCPeerConnection.createDTMFSender #189

Merged
merged 7 commits into from
Jul 12, 2016
Merged

Conversation

saghul
Copy link
Collaborator

@saghul saghul commented Jul 11, 2016

(Before you jump to replying "DTMF?! heresy!" please note I have not enjoyed implementing this pull request)

So, DTMF o'clock. This PR implements the RTCDMFSender functionality through RTCPeerConnection.createDTMFSender. Yes, it's supposed to be deprecated, but Chrome is one year in and they haven't moved away from it, so here we are.

In order to get this working 4 parts were needed:

  • ObjC wrapper for libWebRTC's C++ library functionality
  • Swift wrapper for the ObjC code
  • JS code to expose the Swift code
  • Sacrificing an analog phone to the PSTN gods

I've come to call this The Onion model: layers atop layers of abstraction, and the deeper you dig, the more you cry. But it works!

I digress... @ibc please take a look. I tried to break it down into small commits for easier review.

Standard warranty applies: works on my devices.

@ibc
Copy link
Collaborator

ibc commented Jul 12, 2016

I trust you (or die).

@ibc ibc merged commit feced25 into cordova-rtc:master Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants