Full details of the build including source code and schematics is in my project notebook on GitHub - see LEAP#545.
Here's a quick demo..
An ESP8266-powered foot switch for controlling and looping YouTube videos. Ideal for music practice when you don't have three hands.