Run mpv on boot and accept tty input

Hello, I am trying to make a dead-simple IPTV box out of an old thin client.

It is running Ubuntu Server without any GUI.

I want mpv to run on boot with input being recognized on the tty to change channels.

I tried running it as a systemd service but I could not change channels.

I could try auto login and run mpv as an init script but I need it to restart on failure.

Any ideas?

I imagine you will need to login before input will be forwarded to mpv. If you login look into systemd --user as that will launch mpv as the logged in user. I don’t know for sure but Restart=always should work as long as the user session is active.