video-slider-response plugin: start and slider_start parameters not working
See original GitHub issueIn the jspsych-video-slider-response plugin, the start
and slider_start
parameters do not seem to be working. I’m using the plugin’s example HTML file to test this.
The video always starts at the beginning, regardless of the start
value. The start parameter works fine in the two other video plugins.
The slider is always set to the maximum value, regardless of the slider_start
value. The slider start parameters work fine in the html and image slider plugins.
This happens in Firefox and Chrome, with no errors in the console.
It would be great to know if someone else can reproduce this problem, since I think the plugin must’ve been tested and worked fine when it was added in jsPsych v6.1.0, and I don’t know what would cause it to stop working now.
I’ll look for a cause/fix and update here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
World’s fastest fix. Thanks very much @vijaygopal1234 !!
Regarding
start
not working, it looks like there are two elements with the same id, so the video element is not being picked byquerySelector()
.https://github.com/jspsych/jsPsych/blob/83980085ef604c815f0d97ab55c816219e969b84/plugins/jspsych-video-slider-response.js#L149
https://github.com/jspsych/jsPsych/blob/83980085ef604c815f0d97ab55c816219e969b84/plugins/jspsych-video-slider-response.js#L180