Eventually I found a way. Rooted with magisk, installed zygisk lsposed and installed a lsposed module called Cemiuiler. Ticked miui screen recorder and in module settings>screen recorder, ticked "unlock more volume from" and "force enable aosp screen recording", rebooted, set audio source to...