Standalone, 1 button, video playlist Kiosk?

  • It's been a minute since I've messed with this, but I've been searching for "kiosk" or "standalone" modes and how i could use a Pi3b to play short videos every time a single button/key was pressed.

    Scenario: Raspberry Pi boots to a screen with a single image (or background). Press a button via keyboard or gpio to play the next video in the playlist. Screen goes back to single image when video is done, and the playlist starts over when the end of the list is reached.

    * Ideally, it would just pick the next video "randomly" from the lowest play-count videos - every time a pin on the GPIO is grounded, or a button-press though a usb keyboard encoder.

    Simple in theory, but difficult to find the requisite settings... Any help would be greatly appreciated!