To allow everything to play through the soundbar you would need to connect the TV's sound output to the soundbar.
Most modern TV's have an Optical or Digital sound output.
If you connect it this way then everything you have connected to the TV will play through the soundbar.
For further help I would need the model number of the TV and the soundbar.