How can I control my home theater system with one remote?

Episode 970 (1:20:20)

Max from West Los Angeles, CA

Max bought a Panasonic VT50 and the sound is terrible. Leo says that TV manufacturers put speakers on TVs almost as an afterthought since a home theater system is now the norm. They just put the speakers in to say the TV has sound.

Max would like to get a Panasonic Soundbar and have both the sound bar and the TV controlled by his DirecTV remote. Leo says that the Panasonic has an optical out and that is controllable by a television remote. That's how the remote can then be picked up by both the TV and the Sound Bar. Any good sound bar should have an optical-in option.