Get a raspberry pi with a standard image. Then:
sudo raspi-config # initial setup, set rpi to boot-to-console
sudo apt install omxplayer
echo 'omxplayer --loop video-to-loop.mp4' >> .bashrc
- plug RPi into input 1
- plug presenter's cable into input 2
- plug output to the projector
- many projectors have a usb port that can power the RPi
The switch will show the RPi, until the presenter plugs in, when it switches to the presenter's screen.
When the presenter unplugs, the switch automatically switches back to the RPi.