I’ve written some Lua scripts for the MPV player in Plex, using many shortcut keys. However, I’ve encountered an issue: when playing certain audio files, perhaps due to embedded album cover images, MPV recognizes the video codec of these files as an image format, such as MJPEG (Motion JPEG) or PNG (Portable Network Graphics) image. As a result, all custom shortcut keys become active, preventing me from entering characters in the search bar using these shortcut keys because they’ve been assigned new functions. This issue doesn’t affect playback of other audio files, as MPV doesn’t recognize their video codec, so the custom shortcut keys remain inactive (these shortcut keys are intended for video/image playback).
So, how can I resolve the problem of being unable to enter characters in the search bar using custom shortcut keys while playing audio files containing images? How can I automatically disable custom shortcut keys when playing media files with a video codec recognized as an image?
One thing I don’t understand is that when playing video files, I can minimize the video and then use the search box to enter characters using those shortcut keys, but when playing audio files with a video codec recognized as an image, I can’t use those keys to input anything.