Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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.

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

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

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

All Unity-related audio stopped working 2 Answers

Videoplayer Component in WebGL with OAuth2 url. 0 Answers

playing audio from a video clip 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges