This question already has an answer here: No sound on music players, YouTube videos etc. Only get system sounds (1 answer) Closed last year .

I am new to Linux and have given Ubuntu a try. My laptop will play system sounds and test sounds but won't play sounds on videos and spotify etc through the speakers. Sound does however work through the TV when connected via HDMI cable.

What could be the problem, and how can I fix it?