r/MAME • u/allancampbell3 • 6h ago
Discussion/Opinion Mame native UI - adding video preview
I have been working on adding a video-preview feature to the native MAME UI. Here is a sample of what it looks like (see video).
- Adds a 3rd tab called "Video" to the Image/Info section on the right of the UI
- Plays MP4 video (with sound) that is named the same as the ROM file that is selected in the UI
Has configuration options for:
- Setting the folder to use as the source of the MP4 files
- Falling back to a static image if no MP4 is available (and a PNG is available)
- Adjusting volume of the video playback from 0-100%
- Turning off the videos' sound entirely
The code doesn't start playing the video for a moment, to allow for smooth/fast scrolling through the games list. I have it set up to use games' logo files as the "fallback" image, so it displays the logo of the game for a moment and then plays the associated video.
Let me know what you think of this addition.