I have already published an article on how to stream videos, photos and music from a computer to a TV using DLNA technology. You can take a look.
I decided to write instructions for setting up DLNA technology between a smartphone (tablet) and a TV in a separate article. In this article