mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
changed handling of stopRecording to reflect handling of create message
This commit is contained in:
parent
10465066ee
commit
762854ad7a
@ -198,13 +198,12 @@ public class AudioHandler extends Plugin {
|
||||
* @param file The name of the file
|
||||
*/
|
||||
public void startRecordingAudio(String id, String file) {
|
||||
// If already recording, then just return;
|
||||
if (this.players.containsKey(id)) {
|
||||
return;
|
||||
}
|
||||
AudioPlayer audio = new AudioPlayer(this, id, file);
|
||||
this.players.put(id, audio);
|
||||
audio.startRecording(file);
|
||||
AudioPlayer audio = this.players.get(id);
|
||||
if ( audio == null) {
|
||||
audio = new AudioPlayer(this, id, file);
|
||||
this.players.put(id, audio);
|
||||
}
|
||||
audio.startRecording(file);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user