The AR504LR-BK can be connected to a laptop and/or TV. If you wish to connect to a laptop and a TV simultaneously, you can do so by connecting the laptop to the speaker's 3.5mm input and the TV to the speaker's RCA input.
You will not be able to switch between audio inputs though, to do that you will need an audio splitter.
If you wish to be able to switch between audio inputs without an audio splitter, you may want to consider the Deep Sonar speaker series such as speaker model ARDS750-BK.