getMediaRecorder(id).play()
(since PennController 1.8)
Starts playing the last recording (if any).
Example:
[js highlight=”15″ try=”data”]InitiateRecorder(“https://myserver/upload.php”);
newTrial(
newMediaRecorder(“recorder”)
.record()
,
newTimer(“recording”, 2000)
.start()
.wait()
,
getMediaRecorder(“recorder”)
.stop()
.print()
.disable()
.play()
.wait(“playback”)
);
[/js]
Will record for 2s and then play back the recording.