-
Notifications
You must be signed in to change notification settings - Fork 51
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
Added video several keyboard responses plugin #83
Conversation
🦋 Changeset detectedLatest commit: 366e2d0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The test result made it quite clear:
The original plugin used this line: expect(getData().values()[0].rt).toBeGreaterThan(0); Because the rt it records is a numeric value and since
You should probably modify this part of the test to loop through the array or check upon the first element of the array or something of the sort. |
Thank you so much, Shaobin-Jiang, I think I was able to fix it now |
Good job on blaming the build failure on the dependencies @marianylund! |
@bjoluc can you peek at this when you get the chance? downgrading jspsych-config seems like it made a difference. guessing we should try to resolve this another way? |
@bjoluc great timing 😁 thanks!! |
All set on the |
@bjoluc Thank you, I have updated the fork and reverted the commit. Is there anything else I should do? |
Nope, looks good to go! Thank you again! |
Hello, this is still my first time contributing to an open-source project, so I will highly appreciate any feedback! Thank you @jodeleeuw for the suggestion to add a new plugin instead of changing the original plugin-video-keyboard-response.
Currently the jsPsych plugin-video-keyboard-response plugin records only one response and saves response time information and which key was pressed. I need to be able to play a video and record several inputs while user is watching the video and map it to the current time of the video to know when during the video user responded.
My plan was to continue with a very simple change on top of the existing plugin, so in the future it will be easier to merge. So, I´ve added a new boolean
multiple_responses_allowed
to control if only one response or multiple will be recorded (default true). Also addedvideo_time
to the data that is returned from the trial.