MIUI is very aggressive in power saving when an app is in the background. I found this relating to MIUI7/8 some of which may be relevant to your situation.
I just recovery the android and the music is normal. A normal day in the android system. Thanks
Is this when streaming over wifi? If so, go to wifi setting, select "more" at the top and set "keep wifi on during sleep" to "always".