Custom media player

I’m currently mpv with a custom web interface for playing music. I want to add this to my home assistant setup but I’m not sure how. The web interface supports a simple rest api and I was thinking of implementing mqtt as more responsive interface.

However, I did not find a rest or mqtt platform for the media player component. I’ve looked at the universal media player but that only supports a small amount of custom commands.

Is there any media player platform that supports mqtt, rest or another easy to implement protocol?

I’ve ended up implementing the mpd protocol using https://github.com/depuits/mpd-server.