Example usage for org.apache.cordova AudioPlayer startRecording

List of usage examples for org.apache.cordova AudioPlayer startRecording

Introduction

In this page you can find the example usage for org.apache.cordova AudioPlayer startRecording.

Prototype

public void startRecording(String file) 

Source Link

Document

Start recording the specified file.

Usage

From source file:com.candygram.media.AudioHandler.java

License:Apache License

/**
 * Start recording and save the specified file.
 * @param id            The id of the audio player
 * @param file            The name of the file
 *//*from ww  w .j a v a2 s  .  c  om*/
public void startRecordingAudio(String id, String file) {
    AudioPlayer audio = getOrCreatePlayer(id, file);
    audio.startRecording(file);
}