Hi,I've been looking for this functionality for some time now on my OnePlus 6T. What I wanted to do was, while I was playing music in some app, eg: Spotify, and I wanna watch YouTube videos but I want the videos to be muted.
I Tried using shell commands through Termux using Wifi ADB to revoke the 'TAKE_AUDIO_FOCUS' permission of YouTube app. This used to work in older versions of android but on Android Q, after I flashed the Revoke Permission command in Termux, YouTube did not stop Spotify's playback and played videos simultaneously without even muting the playback. So essentially YouTube and Spotify both played their media.
That's when I found about this module, works like a charm but in my case of YouTube, the module muted YouTube's Audio playback but also paused my Spotify's playback. So YouTube WAS essentially muted, I couldn't play songs on Spotify simultaneously.
Needed to do both the above mentioned things to achieve what I wanted.
Used Termux to ignore AUDIO_FOCUS requested by YouTube, so videos would play without pausing another Application's playback.
Then used to Module to mute Youtube.
Viola! After a long wait!
Hope you guys find this useful.
Hay, i am experiencing a bug whereby one app is muted while the other app sound continues. As soon as i pause the latter, sound from the other app starts working(Audio Focus ignored on both apps). [Oneplus 6t running PiXeN Os 11]Supports Android 11 now