Video stops playing if participant clicks the middle mouse button


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
In order to log such events, you would have allow mouse responses in the <trial>. Something like

<trial neutral_video>
/ stimulustimes = [10=neutral_video]
/ trialduration = 10000
/ ontrialend= [trial.neutral_video.resetstimulusframes();]
/ inputdevice = mouse
/ validresponse = (mbuttondown, mousewheel)
/ responseinterrupt = trial
</trial>

or

<trial neutral_video>
/ stimulustimes = [10=neutral_video]
/ trialduration = 10000
/ ontrialend= [trial.neutral_video.resetstimulusframes();]
/ inputdevice = mousekey
/ validresponse = (mbuttondown, mousewheel)
/ responseinterrupt = trial
</trial>
Edited 9 Years Ago by Dave
audiosophy
audiosophy
Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)
Group: Forum Members
Posts: 62, Visits: 212
I just replicated it on the web player version too. I also noticed that, as well as stopping the video, if you rotate the wheel, it cycles backwards or forwards through the video (without sound). 

I guess I just hope that not too many of my participants start fidgeting and inadvertently stop the video, as it seems impossible to start it back up again - the video just remains frozen for the trial duration.

Come to think of it, it would be good to be able to record who hits this button, as I may need to exclude them later. Any ideas how I would do this for the wheel button keeping in mind that the mouse responses are technically not allowed by the script? 

 
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Hmm, weird. My guess would've been something like this

https://superuser.com/a/524406

but if it's not, I'm afraid I have no solution here.

audiosophy
audiosophy
Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)
Group: Forum Members
Posts: 62, Visits: 212
Although changing it to use / validresponse = (noresponse) meant that I was actually able to right click while the video was playing which brought up a command box with mostly greyed out options. However I was able to click 'stop', which also stopped the video.

My code for that was:

<trial neutral_video>
/ stimulustimes = [10=neutral_video]
/ trialduration = 10000
/ ontrialend= [trial.neutral_video.resetstimulusframes();]
/ inputdevice = keyboard
/ validresponse = (noresponse)
</trial>

I guess this is a mac issue? 
audiosophy
audiosophy
Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)
Group: Forum Members
Posts: 62, Visits: 212
Hmm.. I don't have any special assignments for the middle/wheel button. I'm on a mac (mouse is logitech M110) and changing the default configuration would require downloading software, which I haven't done.

Yes the /beginresponsetime and trial accept was an effort to see if that would iron out this bug. It makes no difference doing it that way or with / validresponse = (noresponse).

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
> It seems that if a participant (inadvertently or on purpose) clicks the middle mouse button while the video is playing, the video will stop.

Not on my systems. I would guess that you have some special action assigned to your middle mouse button that is responsible for this effect. Why, however, do you have the trial accept input at all and then try to block it by pushing /beginresponsetime out instead of doing

/ validresponse = (noresponse)

?

audiosophy
audiosophy
Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)Guru (8.6K reputation)
Group: Forum Members
Posts: 62, Visits: 212
I've run into a little snag that seems to affect the presentation of videos.

It seems that if a participant (inadvertently or on purpose) clicks the middle mouse button while the video is playing, the video will stop. 

This is what my trial is looking like:

<trial neutral_video>
/ stimulustimes = [10=neutral_video]
/ trialduration = 10000
/ ontrialend= [trial.neutral_video.resetstimulusframes();]
/ inputdevice = keyboard
/ beginresponsetime = 10000
</trial>

It doesn't seem to be affected by any other keyboard or mouse events. Is there anyway to stop this from happening? I want to be sure that people are definitely seeing the whole video. 



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search