-
-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html-button-response/html-keyboard-response + no response = hitching #3359
Comments
One way of doing it would be to not set const impossible_key = 'impossible-key';
let trial = {
type: jsPsychVideoKeyboardResponse,
stimulus: ['./video.mp4'],
choices: [impossible_key],
on_load: function () {
document.querySelector('video').addEventListener('ended', function () {
jsPsych.pluginAPI.keyDown(impossible_key);
jsPsych.pluginAPI.keyUp(impossible_key);
});
}
}; I have not used the jsPsych |
Hi,
I am having an issue as I want to use an html response to display a video as well as some text without giving the participant an option to respond (ie. I just want them to watch the video). The issue is that not all of the videos that could possibly be displayed in the trial variable are exactly the same length and so when I set the trial_duration parameter to one fixed value certain clips get cut off/ there is a lot of screen hitching. Does anyone have an idea on a way I can improve upon this/reduce the stutters? Thanks
Here is a snippet of the stimulus function plus some of the other parameters I am currently using:
return
`
The text was updated successfully, but these errors were encountered: