To keep music playing when the screen is off, ensure your device allows background audio. On Windows, disable Connected Standby in Power Settings. On mobile, adjust battery optimization settings for your browser.