I’ve tried multiple methods to mute the audio coming from a video player component on a WebGL build to no avail. Has anyone found a solution?
My current Audio Output Mode is set to Audio Source. I’m streaming videos from a URL as necessary for playing videos using a video player component on WebGL builds. The video files are .mp4 files, just for reference.
I’ve tried various methods:
- Mute audio listener
- Mute audio source (connected to the video player)
- Reduce volume of audio source
- Reduce volume of audio mixer
Nothing works. Would love any input!
Sorry, I can’t help. I have the same issue.
Also, the Videoplayer doesn’t play in Firefox for me (if audio channel is muted or on channel 0).
I actually managed to find an answer… seems like the bug I opened last year had been addressed.
Here is the answer :
The VideoPlayer’s Direct audio output mode’s current definition is to bypass the Unity audio processing entirely, including volume processing, so you’ll have to manage the VideoPlayer’s volume explicitly.
This is the case for all platforms where Direct audio output mode is supported (currently OSX, iOS, WebGL, Tizen and PS4).
For platforms where the AudioSource output mode is supported (which unfortunately doesn’t include WebGL), the volume processing for audio from the VideoPlayer happens as expected.
Future improvements will track AudioSettings.volume and apply it to VideoPlayer’s direct audio volume automatically.
Sorry for the inconvenience!
Now we just need to figure out how to do that