Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
Audio not load in webgl on an iOS?

edkeyte
Registered User
Quote
2018-02-22 14:10:53

Not sure why but audio doesn't seem to load in webgl on an iOS device.

I tried both .mp3 and ogg and loaded it using an ipad and iphone but nether played with sound.

The same project worked fine on my laptop though.


niko
Moderator
Quote
2018-02-23 08:09:40

Hm, strange, I'll have a look


wild-master
Registered User
Quote
2018-02-23 12:19:59

erik says that might be intentional on iOS devices:
http://ambiera.com/forum.php?t=5...

On iOS devices, you cannot start an audio stream without the user triggering it, AFAIK. Apple did it like this so if you are on a cellular network and be charged per data unit, so that it doesn't get expensive, and no data is loaded until the user initiates it.



niko
Moderator
Quote
2018-02-24 06:55:23

Looked into that, and yes, that's the problem. On ios, is seems like there is no other way to do this other than installing your webgl project as web app in safari. For that, it seem like you need to include these meta tags on your .html page:

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">


In safari, then open your website, click the share icon (box with an arrow pointing up), select "add to home screen". Then start your app from the home screen.


edkeyte
Registered User
Quote
2018-02-25 14:26:36

Thank you, I've been trying to test this but I'm also getting other errors too on the mobile device.

It says: "Couldn't not link program"

Then says: "A problem repeatedly accurred"

🔎︎


🔎︎


Also my Copper cube now can't preview It desn't load the preview within CC even when I try to switch to Mac App, doesn't work.

Also still trying to fix my other problem which was trying to export to Android no joy there ether almost gave up with android so I swithched to WebGL hoping to satisfy my users but everything seems to give me bugs :(


niko
Moderator
Quote
2018-02-25 15:07:09

Hm, are you using some custom shaders? Or doing some javascript code which might throw an excetion?


edkeyte
Registered User
Quote
2018-02-25 15:36:53

No not using shaders and had no plans to...
I haven't started using Javascript yet in this project but am using extensions that I downloaded from CC website.


edkeyte
Registered User
Quote
2018-02-25 15:38:36

Here's an example...
It works on the PC but not on an iphone/ipad:

http://www.queenseng.com/kids/ap...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact