Use media guide from one activity in another activity

I programmed a script so Kodi plays everything to my Oppo (a similar idea to the built-in Kodi media guide to Dune/Mede8er integration) except the handoff happens via an external player in Kodi.

The problem is anytime I use the Kodi media guide in my Oppo activity, I’m forced to switch to the Kodi activity to select and play the media and I then have to switch back to the Oppo activity afterwards. Is there any way around this behavior so I can use the Kodi media guide in my Oppo activity without having to switch back and forth?