Closed larsoner closed 4 years ago
@drammock this fixes a bug with video playback when other visuals are used. Can you give it a look?
Merging #413 into master will increase coverage by
0.01%
. The diff coverage is80.95%
.
@@ Coverage Diff @@
## master #413 +/- ##
==========================================
+ Coverage 88.36% 88.37% +0.01%
==========================================
Files 49 50 +1
Lines 6582 6609 +27
Branches 1090 1093 +3
==========================================
+ Hits 5816 5841 +25
- Misses 513 514 +1
- Partials 253 254 +1
@LiesbethGijbels can you see if the advanced_video.py
example works for you? In theory it should allow you to use expyfun
video functions to show your video rather than cv2
.
@drammock can you look and try this out?
Not easily. see spatialaudio/python-rtmixer#22
running advanced_video.py
example on Linux looks good after installing pillow
(which is an unstated dependency, maybe only for screenshots?). I see the video shrinking and then moving rightward, with the background color changing behind it. Keyboard button presses do not work to pause the video however.
After setting config value RESPONSE_DEVICE
to keyboard
, I still can't pause the video.
I broke that bit of the example, it should be fixed now (pausing using 1. pauses things on my machine). If you get no keyboard response at all, perhaps try simple_experiment.py
to see if other experiments work or not. It will tell us if the problem is specific to this example, or to expyfun
/pyglet overall
hmm, button presses not working in simple_experiment either. I've probably forgotten some dumb aspect of the setup; it's been so long since I set up a new system like this.
Make sure the window that pops up actually has focus, you might need to click on it to get it to really have focus
you might need to click on it to get it to really have focus
yeah, I've been doing that; still no dice.
Maybe try changing Pyglet versions? pip install pyglet==1.3.2
or pyglet<1.5
to get some 1.4 variant...?
If that doesn't work, which window manager are you running? I can try to replicate. Running just from a terminal with python -i whatever.py
I assume?
downgrading to pyglet 1.4 worked!
Closes #358