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 jareds · Feb 28, 2017 at 06:09 PM · errorwebglerror messagechrome

Chrome 56 WebGL error

I'm getting the following error in Chrome 56 on one of my WebGL apps.

Uncaught TypeError: WEBAudio.audio.Context.listener.setVelocity is not a function

The same app works without issue in earlier versions of Chrome (as well as in other browsers like Firefox).

This app was made more than a year ago. Has anyone else experienced this problem? Any ideas for a solution? Right now, all I can think of is rebuilding the app in a newer version of Unity, but I'd like to avoid that process if possible.

Thanks!

Comment
Add comment · Show 2
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 CalxDesign · Mar 02, 2017 at 02:09 PM 0
Share

I've got exact;y the same issue here: with a WebGL test I uploaded over a year ago.

avatar image jareds · Mar 02, 2017 at 02:14 PM 0
Share

I managed to suppress the error by going into the build files and removing calls to WEBAudio.audio.Context.listener.setVelocity. This doesn't seem to have caused a problem in my app (largely because I don't think I'm doing anything with this function).

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · Mar 02, 2017 at 02:37 PM

Well, according to the current webaudio specification the AudioListener class only has two methods "setOrientation() and setPosition()". It's possible that in an earlier version it had a seperate "setVelocity" method. Maybe Chrome just sticks too close to the current documentation.

That said you should keep in mind that all those new technologies revolving WebGL, WebAudio, ... aren't really anything near a "final state". It's constantly changing / evolving. If you want to ensure that your game runs on most modern browsers you may need to update / rebuild your game with the latest version of Unity on a regular basis. Though, doing so is not a guarantee that it works on all browsers / platforms.

As i said WebGL / WebAudio isn't yet a fully established API and it's up to the browser developers to keep the support for those APIs up to date. Deprecation of an old API is also up to them.

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

84 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

Related Questions

WebGL lags and throws shader errors in chrome only 1 Answer

Could not find file "/Users/KingSloth/Desktop/Unity Files/Take those cars/Temp/StagingArea/Data/Native/build.asm.js 0 Answers

Building WebGL compiles but when I open the webpage I get error occured of abort(-1) 0 Answers

Visual Studio Code doesn't work for with unity 2 Answers

WebGL file doesn't work, I can't change levels?! 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