Many TVs have DLNA, which you could use to play content off a NAS - if it ever worked properly. It's such an unloved standard.
Maybe newer TVs (this one's 10 years old) have support for more codecs, but I'm not inclined to replace it when it otherwise continues to work well. I'll just drive it with a Raspberry Pi running Kodi and call it good.