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

Link Search Menu Expand Document

mediarecorder.once

description

Disables the button to record after the first recording. You can still play back the recording, or programmatically start a new recording using the command record.

syntax

getMediaRecorder(ELEMENT_NAME).once()

example(s)


@InitiateRecorder("https://myserver/upload.php");
@
@newTrial(
@    newMediaRecorder("recorder")
$        .once()
@        .print()
@        .wait()
@        .play()
@        .wait("playback")
@);
  • Adds a media player and a recording button to the page, and when the recording stops, the button becomes disabled and the video automatically plays back.