Controlling volume at runtime

Hi everyone,
I use the Rive documentation quite a lot in order to understand the coding part of Rive. And I am a little confused about what I found regarding controlling sound at runtime.

I am showing my Rive animation on my website using the Web/JS runtime. I am trying to add a simple volume controller so the user can adjust the sound without affecting the system volume.

Here is what I found in the doc:
setNumberStateAtPath("volume", 80.0, "Volume Molecule/Volume Component");

I want to control the overall volume of the animation, meaning the volume of the parent Artboard of my animation. However, I am struggling to figure out how to implement this properly.

I have tried using the setVolume() method, but it doesn’t work as expected since this method is not available in the Rive Web runtime API. Also, I attempted to directly manipulate the audio component's volume via setNumberStateAtPath, but I am unsure how to properly link it to my artboard’s volume.

Has anyone managed to successfully control the overall sound of an animation at runtime? Any help or insights would be much appreciated!

Thanks in advance!