JuliusCode / MP4MUSEUM

MP4MUSEUM.org Media Player
GNU General Public License v3.0
32 stars 8 forks source link

Is there a way to add keybindings to play specific videos? #36

Closed dvillas28 closed 9 months ago

dvillas28 commented 11 months ago

Hello!. I want to set some of the keys of my keyboad to play specific videos (and also specific keys to pause/play the videos) for a personal project. Is there a way to do that? I know there are some python libraries that can listen to specific key-pressing. But how would I go about interrupting the current media playing if i press another key?

JuliusCode commented 10 months ago

hi, it seems there has been a problem with my previous answer i had made via email: you can remove the main loop and just call the play video subroutine via keyboard event. you might run into a problem though if you try to trigger a clip while there is one running already, as play video assumes that there is no current playback. best, Julius.