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