I have been working on this exact problem and built a proof-of-concept extension to solve it. It creates a persistent global media controller by caching media session metadata using browser.storage.local.You can see the open-source code and logic her...