Pipe Habpanel embedded html audio into speaker system

I would like to:

  1. Embed a web music streaming service (like Youtube Music) inside a Habpanel Frame
  2. Pipe the audio that it plays into OpenHab
  3. Output the audio to a Raspberry Pi connected to a speaker

Is this possible? I’ve found that HabPanel has audio-routing options in the settings, but I haven’t been able to successfully embed an external player in a web frame although I have been able to get network-local players like Volumio or PiMusicBox embedded in a Frame. Additionally, how can I transform a Raspberry Pi into a sound output that OpenHab can output to?