lucbelliveau / react-native-dtmf Goto Github PK
View Code? Open in Web Editor NEWReact Native library capable of generating DTMF tones
License: MIT License
React Native library capable of generating DTMF tones
License: MIT License
Task :react-native-dtmf:compileDebugJavaWithJavac FAILED
/Users/asii-developer/softphone/softphonenextcall/softphonenextcall/node_modules/react-native-dtmf/android/src/main/java/ca/bigdata/voice/dtmf/BigDataDTMFPackage.java:19: error: method does not override or implement a method fr
om a supertype
@OverRide
^
1 error
Please update this module, by removing @OverRide in BigDataDTMFPackage.java to adapt newer versions of React Native
I've been created a hook to bind with all my dial pad keys, but when I press one key many times, the DTMF Tone stays continuously.
Environment:
RN Version: 0.59.10
Tested on iOS Simulator and real device
import dtmf from 'react-native-dtmf';
export default function useDtmfSound() {
function setSoundDtmf(key) {
let keyPressed = null;
switch (key) {
case '*':
keyPressed = dtmf.DTMF_S;
break;
case '#':
keyPressed = dtmf.DTMF_P;
break;
default:
keyPressed = parseInt(key);
}
dtmf.startTone(keyPressed);
setTimeout(() => {
dtmf.stopTone();
}, 300);
}
return setSoundDtmf;
}
Hi!
Thanks for your work, I'm reaching to you to know if you could see any possibility to play the sound through the earpiece speaker instead of the loud speaker? I'm trying to have the same volume as Apple's official Phone app at full volume but when I use this library, the sound is way louder because Apple uses the earpiece speaker.
Thanks in advance,
Have a good day! ๐
I really have no idea how I can use this library? I have written a simple code using react-native-immediate-phone-call which causes the dialer to appear, I used background task and libraries like react-native-background-timer to be able to dial dtmf tones after dialing a number but it seesm they do not work in background and as there's no way, as far as I know, to prevent the dialer comes up I am wondering if there's a sample code of this library that actually works?
could you release the latest code to npm?
We've created a new org react-native-webrtc
which is now housing react native voip type modules, @lucbelliveau if you don't want to maintain this project any more how would you feel about transferring it?
DTMF_S
and DTMF_P
should be DTMF_STAR
and DTMF_POUND
on android
They're DTMF_S
and DTMF_P
on ios
otherwise we cant use cocoapods
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.