Giter VIP home page Giter VIP logo

Comments (3)

nerveCarlos avatar nerveCarlos commented on July 17, 2024 1

I will right now, and will let you know.

from cordova-plugin-media.

janpio avatar janpio commented on July 17, 2024

Have you tried pausing and resuming recording? The README says it's only supported on iOS, but the code actually has some implementation for Android as well:

else if (action.equals("pauseRecordingAudio")) {
this.stopRecordingAudio(args.getString(0), false);
}
else if (action.equals("resumeRecordingAudio")) {
this.resumeRecordingAudio(args.getString(0));
}

/**
* Stop recording audio file.
*/
Media.prototype.stopRecord = function() {
exec(null, this.errorCallback, "Media", "stopRecordingAudio", [this.id]);
};
/**
* Pause recording audio file.
*/
Media.prototype.pauseRecord = function() {
exec(null, this.errorCallback, "Media", "pauseRecordingAudio", [this.id]);
};
/**
* Resume recording audio file.
*/
Media.prototype.resumeRecord = function() {
exec(null, this.errorCallback, "Media", "resumeRecordingAudio", [this.id]);
};

iOS and Android was both added at the same time:
https://issues.apache.org/jira/browse/CB-10776

from cordova-plugin-media.

nerveCarlos avatar nerveCarlos commented on July 17, 2024

Is not working, when I use the function pauseRecord, that pause record.

But when I use resumeRecord for continue recording, start again recording.

I am not sure the reason. Because in native you can pause and resume a recording.

This is the part of code for resume record, see that only call record function and start again.

/**
* Resume recording and save to the file specified when recording started.
*/
public void resumeRecording() {
startRecording(this.audioFile);
}

from cordova-plugin-media.

Related Issues (20)

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.