When I move my cursor away from the screen with the youtube video, the sound from the video decreases.

My guess is that the computer is made to realize what window I am on and decrease the volume of all other windows not currently being used.

How do I prevent this?