mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
29 lines
762 B
HTML
29 lines
762 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src="../packages/jspsych/dist/index.browser.js"></script>
|
|
<script src="../packages/plugin-initialize-camera/dist/index.browser.js"></script>
|
|
<script src="../packages/plugin-html-video-response/dist/index.browser.js"></script>
|
|
<link rel="stylesheet" href="../packages/jspsych/css/jspsych.css" />
|
|
</head>
|
|
<body></body>
|
|
<script>
|
|
|
|
var jsPsych = initJsPsych();
|
|
|
|
let init_camera = {
|
|
type: jsPsychInitializeCamera,
|
|
}
|
|
|
|
let vr = {
|
|
type: jsPsychHtmlVideoResponse,
|
|
stimulus: `<p>Make a sad face</p>`,
|
|
recording_duration: 3500,
|
|
show_done_button: false,
|
|
allow_playback: true
|
|
};
|
|
|
|
jsPsych.run([init_camera, vr]);
|
|
</script>
|
|
</html>
|