Many Xiaomi smartphone owners face the unfortunate situation of the built-in camera not playing audio from streaming services at the time of the start of the video.This is not a defect of a particular device, but a feature of the MIUI software shell and the new HyperOS, which by default blocks third-party audio streams to avoid conflicts of resources of the microphone and the system. Users often wonder whether this restriction can be circumvented without obtaining root rights, since the standard settings do not offer an obvious switch to unlock the sound.
The solution is there, and depends on the version of the operating system, as well as the model of your Xiaomi, Redmi or POCO. In some cases, it is enough to change the settings of the microphone in the camera app itself, in others it will require the installation of specialized modules or third-party applications for recording the screen. It is important to understand that system restrictions are not just created: they are designed to prevent the recording of protected content or distortion of sound, but for bloggers and content creators these locks become a serious obstacle.
In this article, we will look at all the current ways to simultaneously shoot videos and listen to music on Xiaomi devices.We will examine the native methods available in the latest updates, and more complex but effective options using third-party software.You will learn how to set audio priority and which applications are best suited for creating quality content in conjunction with Spotify, Yandex Music or Apple Music.
Why Xiaomi Blocks Sound When Cameras Are Turned On
The main reason lies in the architecture of Android and how Xiaomi implements audio stream management. When you launch a camera app, it requests exclusive access to the device's audio equipment. Android Audio Focus interprets this request as a signal that the current media player (such as Yandex.Music) should give way or stop completely. On pure Android, this is often solved by mixing, but in the MIUI shell, the camera app is given priority, which leads to silence in the headphones or speakers.
There are also restrictions on copyright protection and DRM-Some streaming services can block audio recording themselves if they detect an active camera app, although this is less common. In most cases, the problem is solved at the level of operating system settings, where you need to manually specify that background music playback should continue even with active video capture.
β οΈ Warning: Changing audio system settings or installing modules may cause the camera to work in an unstable manner on some models.
Itβs also worth considering that different firmware versions (Global, China, EEA) may have different behaviors, and Chinese versions of MIUI often have stricter restrictions, whereas in global builds, developers sometimes leave loopholes or add hidden features for bloggers, and understanding this logic helps you choose the right method for bypassing locks for your particular case.
Native settings MIUI and HyperOS for working with sound
In the latest versions of Xiaomi shells, engineers have introduced more flexible microphone control, which partially solves the problem. First of all, you should check the settings of the camera application itself. Open the camera, go to the settings menu (three stripes or gears) and find the item associated with the sound source or microphone. In some models of Redmi Note and Xiaomi series 13 and 14 there is a choice between "Original", "Amprovement" and "Background noise".
If the standard switch doesnβt work, change the settings of special features. Go to Settings β Advanced Settings β Special features. This may include an option that allows applications to play audio even when other processes are running. However, this method does not work on all devices, as it depends on the specific version of Android (11, 12, 13 or 14).
- π΅ Check to see if Do Not Disturb or Silent Mode is activated, which can force media sounds to be silenced when running heavy apps.
- π Make sure the "Absolute Volume" option is enabled in the audio settings, if you use Bluetooth headphones, this sometimes helps synchronize streams.
- π± Try to run music before the camera opens, not after, as the system can handle audio focus capture differently depending on the start order.
Special attention should be paid to the function "Sound effects". In the Settings menu β Sound and vibration β Sound effects try to turn off the Mi Sound equalizer or Dolby Atmos. Sometimes the conflict of the sound processor drivers with the camera application causes a failure, and turning off the improvers returns the normal multi-tasking operation.
π‘
If you use wireless headphones, try switching temporarily to a wired headset or a phone speaker to help you understand if the problem is in the Bluetooth protocol or the MIUI system itself.
Using third-party applications to record video
When regular funds fail, third-party applications come to the rescue, using different video capture algorithms. Unlike the system camera, they often don't ask for exclusive access to the audio stream, but instead record what is already being played on the system. One of the best solutions is the Open Camera app, which is completely free and open source.
To set up Open Camera, you need to go to the app settings, select the "Video Settings" section, and find the "Sound Source" option, and you need to select the "External microphone" or "Optimum size" option, which often allows you to save background music. Also popular are applications like Footej Camera 2 and ProCam X, which are sharpened for professional shooting and have more advanced resource management.
βοΈ Set up an Open Camera to record with music
Another effective method is to use screen recorders. Apps like XRecorder or Xiaomiβs built-in screen recording feature (with Microphone and System Sound) let you record whatβs happening on the screen along with music. While video quality may be inferior to a native camera, this is often enough to create content for TikTok or Instagram Reels.
β οΈ Warning: Third-party apps may request broad permissions to access files and microphone. download software only from trusted sources, such as the Google Play Store, to avoid malware.
Advanced Methods: ADB and System Commands
For users who are not afraid to work with a computer, there is a method to disable audio focus via ADB (Android Debug Bridge), which does not require superuser rights (Root), but requires debugging over USB. The essence of the method is to send a command that prevents the system from stopping other applications when the camera starts.
To start, activate Developer Mode. Go to Settings β About Phone and quickly click on the build number (MIUI Version) seven times. Then, in the Advanced Settings menu β For developers, turn on "Debugging on USB." Connect your phone to your PC, install ADB drivers, and execute the following command at the terminal:
adb shell settings put global audio_focus_policy 1This command may vary depending on the Android version, but the principle remains the same: we change the policy of managing audio focus. If the standard command does not work, you can try resetting the audio service settings via adb shell pm clear com.android.soundrecorder, although this is a more radical method.
| Method | Difficulty | Risk | Efficiency |
|---|---|---|---|
| Camera settings | Low. | No. | Medium |
| Third-party annexes | Low. | No. | Tall. |
| ADB team | Tall. | Medium. | Tall. |
| Root modules | Very high. | High-pitched | Maximum |
What if the ADB canβt see the phone?
Solving the problem through Root and Magisk
If you're an advanced user and your device has an unlocked bootloader, the most reliable way is to get Root rights. The Magisk module allows you to get into system processes and change their behavior. There is a special module, often called Disable Audio Focus or similar, that completely disables the audio lock mechanism.
Installing these modules requires caution. Once you install Magisk through Recovery, you need to download the archive with the audio control module and download it through the Magisk Manager application. Once you restart, the system will stop strangling background applications when you start the camera, which gives you full control over which applications take priority in audio playback.
- π Unlock Bootloader is officially possible through Mi Unlock, but requires a wait of 7 to 168 hours.
- βοΈ The use of Xposed Framework modules also allows you to fine-tune the behavior of audio drivers without completely flashing.
- πΎ Make sure you make a full backup (TWRP) before any manipulation of the Root rights, as the error can lead to a "brick" of the device.
Importantly, having Root rights can block banking applications and some games with cheating protection, so this method is more suitable for second devices or for those who are willing to constantly bypass Root detectors (for example, through Magisk Hide or Zygisk).
π‘
Root rights give you maximum freedom in audio setup, but carry the risk of loss of warranty and unstable system operation.
Optimization of background processes
Even if you can run your music and your camera at the same time, MIUI can kill your music player over time to save energy. To avoid this, you need to set up your energy savings correctly. Go to Settings β Applications β All apps, find your music service (Spotify, YouTube Music, etc.) and go to Battery.
Select No Limits mode. This will prevent the system from forcibly closing the application or limiting its background activity. It is also useful to fix the application in the menu of running tasks: open the multitasking menu (swipe from the bottom up and pause), find the player window and press the lock or pull it down to show the lock icon.
Another nuance is the notifications, which can sometimes be a bug if the player has the notifications turned off, and make sure that the notification settings of the music app allow the display on the lock screen and in the curtain, which keeps the process active.
β οΈ Warning: No Limits increases battery consumption. If you're taking long videos with music on, make sure your phone is charged or connected to a powerbank.