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
0
Question by mmsra1756 · Jul 30, 2016 at 10:25 AM · iosaudiowebglbrowsersafari

WebGL Audio on iOS Safari

Hello, wondering if there is any information regarding this topic.

At the moment, version 5.35f1 when you export to WebGL and run on iOS browsers the audio does not play. On Android, the audio does work on my HTC One m7.

The audio's compression format is Vorbis. I have not tested with PCM or ADPCM, not sure if that makes a difference.

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 cynkin · Nov 09, 2016 at 07:59 PM 0
Share

@mmsra1756, did you ever figure out a solution for WebGL audio on iOS Safari?

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Andy-Hennah · Nov 18, 2016 at 10:40 PM

We're getting the same problem. A really simple game with one audio source and a listener. Build it for WebGL (in Unity 5.4.2f2) and it works on Chrome, Firefox, Edge on desktops (Windows). It also runs on Safari, Chrome and Firefox on an iPad air with iOS version 10.1.1 (14B150) - however, there is no audio. We've tried several audio settings, load types and compression formats but nothing seems to work.

Has anyone out there got a WebGL game to play audio on an iOS device? (I know WebGL is not officially supported by UT at the moment - but any help would be gratefully received).

@coolraiman - I've seen you post stuff on here about getting WebGL to work on iOS (http://answers.unity3d.com/questions/1154651/does-unity-prefer-webgl-exported-content-to-run-on.html) - any thoughts from you?

Comment
Add comment · Show 1 · 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 Andy-Hennah · Feb 27, 2017 at 01:19 PM 0
Share

Thanks @ScottYann. It's a good solution, but won't work for our implementation I'm afraid. We gave up trying to get WebGL to work on iPads and went the native route. $$anonymous$$aybe we will try WebGL again later. Thanks again Andy.

avatar image
0

Answer by ScottYann · Feb 27, 2017 at 02:29 AM

hello @Andy-Hennah and @mmsra1756

This isn't the perfect solution but it works. You have to install your web page as a web app. For details see this forum post:

https://forum.unity3d.com/threads/webgl-audio-is-not-working-in-ios.418683/

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 LilGames · Sep 18, 2018 at 06:47 PM

There's this solution that requires playing an audio file via the main webpage first, to trigger audio on. It would seem that the WebGL template could be modified to include a "start game" type of button to accomplish this.

https://unitylist.com/p/bpc/Unity-Mobile-Web-Audio-Example

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

9 People are following this question.

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

Related Questions

Audio in WEBGL on IOS devices -1 Answers

How do I reduce the CPU load spike caused by playing an audio clip? 1 Answer

Generate Chart with Data 0 Answers

Unity Video player in Safari Webgl 1 Answer

Issues with iPad Audio 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