How to Change Volume for VideoPlayer with AudioSource Audio Output Mode

I’ve got a video player using an AudioSource for its Audio Output Mode. I want to be able to adjust the volume via script. SetDirectAudioVolume doesn’t work because it’s not using the Direct output mode, and if I try to adjust the AudioSource volume directly, it gets automatically reset to 1 whenever I play the scene.

So how do I adjust the volume?

While this likely won’t help the person who asked the question, we fixed ours by just modifying the volume of the AudioSource (audioSourceVariable.volume = x;) whenever the video plays (line above Play()), and it works for us. Responding here as it’s the top hit when searching ‘change volume VideoPlayer Unity’