adafruit / pi_video_looper

Application to turn your Raspberry Pi into a dedicated looping video playback device, good for art installations, information displays, or just playing cat videos all day.
GNU General Public License v2.0
451 stars 239 forks source link

Attempting to add ASLA volume controls #168

Open Pnub opened 1 year ago

Pnub commented 1 year ago

Trying to add new keyboard shortcuts to allow for volume up and volume down, but any changes made to the video_looper.py script aren't reflected in the restart. Even a simple additional output in run to the console. What am I missing?

Once I get this working I'm curious if others would find it worthwhile.

tofuSCHNITZEL commented 1 year ago

you need to run python3 setup.py install --force from the install.sh so the package gets updated. you may also use "develop" instead of install - then it will just link to your source files (https://stackoverflow.com/questions/19048732/python-setup-py-develop-vs-install)

SirVaxi commented 1 year ago

Hey Pnub Did you succeed? - im trying the same thing, but i can not get it to work. If you did, will you share the code ?

Pnub commented 1 year ago

SirVaxi, I was successful. Let me make a few tweaks and I'll upload it to my repo to share.

tofuSCHNITZEL commented 1 year ago

great! please open a pull request after you are done, thanks!

SirVaxi commented 1 year ago

Pnub, Looking forward to seeing how you solved it! - I think it's so nice that you want to share it with the rest of us!

tofuSCHNITZEL commented 9 months ago

maybe it would also work to just send "+" and "-" to the omxplayer process? (just like the pause command) needs to be tested if this would also control the alsa device