Coder Social home page Coder Social logo

cordova-plugin-audio-recorder-api's People

Contributors

emj365 avatar gitter-badger avatar rooswelt 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  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  avatar  avatar  avatar

cordova-plugin-audio-recorder-api's Issues

File is not saved in Android

I have run this in Android 4.4.2. It records, it plays back and it shows file location but the file is not saved there. Maybe it gets deleted somehow.
/data/data/app-id/files/file-id.m4a

Low volume in IOS

Hello,

First of all thanks for your great work. I am using your plugin for developing one of my ionic 2 project. Recording was successful in IOS but volume is very low. I ain't facing such problem with android but with IOS only. I tried to play the audio with cordova media plugin, mediaElement JS player & HTML5 audio tag. Everywhere having same problem. Any suggestion?

Thanks
Jibon

Plugin not working. Does any fork work?

Hi, I used the following function on both Android and iOS but it returned error. Does anyone know if any fork works?

recorder.record = function() {
  window.plugins.audioRecorderAPI.record(function(msg) {
    // complete
    alert('ok: ' + msg);
  }, function(msg) {
    // failed
    alert('ko: ' + msg);
  }, 30); // record 30 seconds
}

Can I return the function to know when it's done recording?

I want to record something of 30 seconds. In my ionic controller I call the RecordService where your API is used to record, everything works, but I want to return something to my controller once the success function is done... How can I do that?

SERVICE:

.service('RecordService', function (UsersModel, Backand, $cordovaMedia, $q, $cordovaFile, $state) {
    var service = this;

    service.record = function () {
      return window.plugins.audioRecorderAPI.record(function (savedFilePath) {
        var fileName = savedFilePath.split('/')[savedFilePath.split('/').length - 1];

        // Store filename in user object in database

        Backand.getUserDetails().then(function (result) {
          UsersModel.fetch(result.userId).then(function (user) {
            user.data.music = fileName;
            UsersModel.update(result.userId, user.data).then(function (updatedUser) {
              console.log(updatedUser);
              return savedFilePath;
            })
          }, function (error) {
            console.log(error);
          })
        }, function (error) {
          console.log(error);
        });
      }, function (error) {
        console.log("Kapot: " + msg);
        return error;
      }, 30);
    }
  })

CONTROLLER:

function record() {
      rec.recording = true;
      startTimer();
      RecordService.record() // Here do something like .then(function() {bla bla}) ?;
    }

Getting file contents

Hi. Is there any way I can get the contents of the recorded file back in javascript, so I can send that blob to my server?

Thanks.

use timer to stop recording in ios

In the iOS, invoke the callback delays when recording complete with duration.
But the manually stopping is fine.

So I guess using the timer to control it in iOS should solve the problem.

Audio recording failed in marshmallow

After few seconds of audio recording start function call it failed with the following error message:

setAudioSource failed

This issue I found in marshmallow device. Also can you add support for pause audio recording if possible.

invalid action ?

I clicked the record,but it alert invalid action in android.Why?

Error when I stop a recording already stopped by timeout

There is not an event related to timeout, so when I stop a recording already stopped by timeout I don't know recording status and I get an exception (the application dies), I get this behaviour on android platform, I don't know if there is the same problem on iOS. Do you think to fix it? Thanks

prepareToRecord failed

I'm getting prepareToRecord failed on ios 9.3.

The file path where it is trying to be saved is: var/mobile/Containers/Data/Application/C9BC7E3A-6030-4251-BBE7-AC19A74E762A/Library/NoCloud/76DB73CC-9F88-4304-8021-4D71C71A597B.m4a

audid file location

Hi,

The audio file created in Android is under /data/data, I need to use $cordovaFileTransfer to upload the audio file to Amazon S3, but look like no access right to this file, even tried to copy it to another location, same error.

Can you generate the audio file under different location.

Thanks

It not works on device?

Hi:
I found this plugin works well on ios simulator, but seem not works on device, and every recording file only 1s?

volume settings

thank you for this plugin, it's the only one I managed to work with Ionic :)

is there any way to setup volume of recording/playback?

Causes touchend event to fire in Android 4.4.2 Samsung Galaxy Note II

Our UI for recording sound involves holding a button down whilst recording, then releasing to stop. We call the plugin on touchstart, then again on touchend.

This appears to work on every phone/OS that we tested apart from Android 4.4.2 on the Galaxy Note II. In this case, calling the plugin to start recording causes the touchend event to fire in the webview. In practice, this makes it appear as though the user has taken their finger off the screen.

Specifically, this line seems to be causing this behaviour:

myRecorder = new MediaRecorder();
...
myRecorder.prepare();
myRecorder.start(); // <--- THIS CAUSES TOUCHEND EVENT

Any ideas how to prevent or workaround this issue? Thanks in advance.

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.