mediarecorder.record

description

Starts recording.

syntax

getMediaRecorder(ELEMENT_NAME).record()

example(s)


@InitiateRecorder("https://myserver/upload.php");
@
@newTrial(
@    newMediaRecorder("recorder","audio")
$        .record()
@    ,
@    newTimer("recording", 2000)
@        .start()
@        .wait()
@    ,
@    getMediaRecorder("recorder")
@        .stop()
@        .play()
@        .wait("playback")
@);
  • Will record audio for 2s and then play it back.