Giter Club home page Giter Club logo

audiorecorder's People

Contributors

andreybeta avatar jpriebe avatar karthipnsmy avatar m1ga avatar smackysnacks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

audiorecorder's Issues

setAudioSource failed

Hi,

in my simple app (android 5-.* Nexus5) comes after 'audioRecorder.startRecording' the error message:

02-03 12:01:59.316 203 822 W ServiceManager: Permission failure: android.permission.RECORD_AUDIO from uid=10231 pid=26728
02-03 12:01:59.316 203 822 E MediaRecorderService: Request requires android.permission.RECORD_AUDIO
02-03 12:01:59.316 26728 26749 W System.err: java.lang.RuntimeException: setAudioSource failed.

Here my code snippet:

var audioRecorder = require('titutorial.audiorecorder');
audioRecorder.startRecording({
    outputFormat : audioRecorder.OutputFormat_MPEG_4,
    audioEncoder : audioRecorder.AudioEncoder_AAC,
    directoryName : "recordings",
    maxDuration : MAXDURATION,
    success : function(e) {
    },
    error : function(d) {
    }
});

Remark:
in my manifest is outside of application the entry:
uses-permission android:name="android.permission.RECORD_AUDIO"/

I found in /system configuration/apps/myApp/permissions an unset checkbox for microphone. After setting I can start the recorder without problems. I think we need a method audioRecorder.hasMicrophonPermission() and an intent to this configuration of app.

Like this:

Intent intent = new Intent();
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
Uri uri = Uri.fromParts("package", activity.getPackageName(), null);
intent.setData(uri);
context.startActivity(intent);

Internal Storage

Hi - trying to use internal storage - looking at the Java file it seems like you should be able to just set location = 'internal' - but it's not working. Anything I might be missing?

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.