getVoiceRecorder(id).play()
Starts playing the last recording (if any).
Example:
[js highlight=”13″ try=”data”]PennController.InitiateRecorder(“https://myserver/upload.php”);
PennController(
newVoiceRecorder(“recorder”)
.record()
,
newTimer(“recording”, 2000)
.start()
.wait()
,
getVoiceRecorder(“recorder”)
.stop()
.play()
.wait(“playback”)
);
[/js]
Will record audio for 2s and then play it back.