How to record music and video at the same time on Xiaomi

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.

πŸ“Š Do you encounter music blocking when recording videos?
Yeah, it's very annoying.
No, I'm working.
I use third-party apps.
I don't make music videos.

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

Done: 0 / 5

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 1

This 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.

MethodDifficultyRiskEfficiency
Camera settingsLow.No.Medium
Third-party annexesLow.No.Tall.
ADB teamTall.Medium.Tall.
Root modulesVery high.High-pitchedMaximum
What if the ADB can’t see the phone?
Make sure the debugging permission window appears on your phone screen, and click "Always allow." Also try replacing it. USB-cable, as some cables only support charging.

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.

Frequently Asked Questions (FAQ)

Why is there no sound in the video on my Xiaomi, even though the music is playing in headphones?
Chances are, the camera app captured the audio stream and switched it to recording from the microphone, drowning out the media sounds. Try using a third-party camera app or adjusting the sound source in the video recording settings.
Can I record music from TikTok or Instagram?
Yes, but it's better to use the built-in tools of the social networks themselves to record stories, so if you're shooting through the system camera, the music from those apps can also be blocked, and use the app-based memory-storage method.
Does recording music affect the sound quality of the video?
If the phone's microphone is free, it'll write the surrounding sounds. If you want the video to be music-only, you'll have to mount the track after you've shot it in the video editor, because the camera will always try to write the noise around it.
Does this method work on HyperOS?
The principles are the same on HyperOS, but menu names may differ, and most often the problem is solved through customization of special features or using third-party software, since the new shell more strictly controls the processes.
Do I need the internet to record music videos?
No, if the music is already downloaded to the phone's memory for offline listening, but if you stream music online, a stable Internet is mandatory, and the load on the processor and modem will increase, which can lead to heating of the device.