The symptoms are not revealing which it is. Try the usual remove the optical cable and give the port the shortest possible air puff with canned air. Then try it with an analog connection.
Hi everyone, I bought a Samsung 65" UN65JU650D Smart TV with a Samsung HW-JM45C sound bar and bluetooth sub. The sound bar is connect with the audio optical cable when I turn the TV on, change the channel, and with every YouTube video I play. The video starts out with no sound and a clicking noise coming from the sound bar. After 5-20 seconds the sound starts playing. What could be the possible causes of this?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic