Can I and if so how can i do this?

I’m not keen on any ‘proprietary’ players, like ‘smart TV’ or WDTV, or AppleTV, because they have very closed App stores, and the apps are often not updated.

So my solution is a small, cheap Android media box (essentially a ‘headless tablet’). There are hundreds of these things available from your favourite online shop.

Here’s a similar discussion to yours, although it starts a bit specifically…

I use Kodi, connecting via SMB to my MyCloud for video
I use BubbleUPnP for music, connecting via DLNA.
I run a BubbleUPnP Server on the MyCloud for remote access to my media (courtesy of user Nazar78).
I run various catch-up TV apps, as well as Facebook, email & internet browsing.