Giter Club home page Giter Club logo

react-native-dtmf's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-dtmf's Issues

Remove @Override

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

The Tone stays continuously when executed many times

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;
} 

[FEATURE REQUEST] Possibility to play sound through earpiece speaker

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! ๐Ÿ™‚

How to use it?!

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?

Move the project to new owner?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.