The new PCIbex Farm is here! Be sure to check out all of its new features and changes.

Link Search Menu Expand Document

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.