How to fix media playback notification on MIUI 12.5
If you have root:
1. Open terminal app (Termux, Terminal Emulator for example).
2. Type this command to give root permissions:
settings put secure qs_media_resumption 0
If you don't have root:
1. Enable USB Debugging and USB Debugging (Security Settings) in Developer Options.
2. Connect device to your PC, open ADB and authorize your device.
3. Type command:
adb shell settings put secure qs_media_resumption 0