I got Ubuntu Core 18 running on a Raspberry Pi 3 Model B+. I want the computer to boot and automatically play a video file to HDMI output and loop.
I can log in via SSH and run omxplayer-pi test.mp4
and it plays a video on a TV connected via HDMI.
How do I automate this so that it runs on boot?
Once I get the basic automation in place, I'll probably want to write a script to keep trying to play the video if, for example, the omxplayer-pi
process dies.