How to add the functions of media center in a RPi4 with nextcloudpi?

Nextcloudpi is running very well in my raspberry pi with two 480GB SSD.
The device is in the same furniture of TV and I’m wondering if It’s possible keep it running as a cloud and add the function of a media center, connecting the RPi4 to TV using HDMI and running movies and songs from one of the SSD.

If so, does anyone has the “receipt” to make it?