Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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. |
||||
|
Hm, strange, I'll have a look |
||||
|
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.
|
||||
|
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"> 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. |
||||
|
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 :( |
||||
|
Hm, are you using some custom shaders? Or doing some javascript code which might throw an excetion? |
||||
|
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. |
||||
|
Here's an example... It works on the PC but not on an iphone/ipad: http://www.queenseng.com/kids/ap... |
|