• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by tannerperson · Jan 03, 2018 at 12:46 AM · audiowebglvideomute

Mute video player audio in WebGL not working

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:

1) Mute audio listener
2) Mute audio source (connected to the video player)
3) Reduce volume of audio source
4) Reduce volume of audio mixer

Nothing works. Would love any input!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image FireHawkX · Apr 03, 2018 at 06:13 PM 0
Share

so this is still a bug?? $$anonymous$$y game is on an older Unity 5.6.3p2 version right now... and wanted to know if this had been fixed since... I had this issue first more than a year ago... reported it to Unity devs... was told it was a "known issue"... (they even sent me a unity 2017 tshirt for the bug reports)... back then 2017 would not even export to webgl as that was broken too... so its not fixed yet? ouch...

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Memorix101 · Jan 25, 2018 at 01:27 PM

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).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by FireHawkX · Apr 03, 2018 at 07:49 PM

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 :)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

95 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why video does't have sound on runtime? 2 Answers

video-audio not playing in build (i tried webgl and android) 0 Answers

Animated GIF and Audio Instead of Video? 3 Answers

Screenshot Movie with Audio Capture 1 Answer

How to record a video (with sound) without a framerate drop? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges