desktop to TV to soundbar

vbgyor

Prominent
Jan 5, 2018
2
0
510
I am planning to buy a soundbar and want to make it work with existing desktop and TV system.
I am planning to make the connections like this:
1. connect Desktop with TV via HDMI. this will transfer the audio/video from desktop to TV
2. Then connect the TV with soundbar via digital/optical audio out port.

here is the image for connections from my TV. http://
will this connections work for both audio/video?

Thanks