question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

response_allowed_while_playing plugin doesn't seem to be working

See original GitHub issue

Hi, I am currently trying to construct an experiment where I want the participants to make button responses only after the audio is played. Using the “audio-button-response” plug-in, I’ve set the following parameters:

var fam_test_trial = {
        type: "audio-button-response",
        stimulus: jsPsych.timelineVariable('audio'),
        choices: objects,
        button_html: '<button class="jspsych-btn"><img src="img/%choice%.jpg" width = "375", height = "375"></button>',
        **response_allowed_while_playing: false,**
        response_ends_trial: true,
        trial_duration: 7000,
        post_trial_gap: 300
}

However, even if response_allowed_while_playing has been set to false, I was still able to make a button response before the audio finished playing.

How could I make sure a response can be made only after the audio is done, but at the same time allow the response to end the trial (after the audio has been played)? Thank you.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jodeleeuwcommented, Jan 19, 2021

@rachelkytsui this is now fixed! You can grab the latest code for the plugin and swap it into your copy of 6.2.

0reactions
rachelkytsuicommented, Jan 19, 2021

@jodeleeuw It works! Thank you so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix the Invalid JSON Response Error in WordPress
The response is not a valid JSON response," it will typically appear when you're working on content in the WordPress Block Editor.
Read more >
Theme not working on mobile devices
Hi all,. My theme Ryan is not working on mobile devices. Actualy sometimes it works, other times it just stop working on mobile...
Read more >
WordPress plugin not working? Check these 5 things
When a plugin doesn't seem to work, this checklist will help you determine the possible cause. Follow these steps and find the solution!...
Read more >
Fix videos & games that won't play - Computer
Some video or game issues are caused by Chrome extensions, plugins, or something saved in your cache or browser data. On your computer,...
Read more >
How to Fix “Sorry, You Are Not Allowed to Access This Page”
This error usually displays when you're trying to see a page in your WordPress dashboard that your user role doesn't have permission to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found