[c2 173] Audio never PRELOADS on iOS 7.1 (it did in c2 146)

Bugs will be moved here once resolved.

Post » Wed Jun 18, 2014 9:44 am

Problem Description
Audio never loads on ios7.1
Previous version of c2 I was using (148) never had this issue (audio did preload on ios7.1) thats why I experienced this with my project.
Ive created extremely simple capx.

I tried from preview over wifi and from ftp server. Exactly the same results each time.
Audio loads on desktop chrome without issues but it never loads on ios7.1


Attach a Capx
https://dl.dropboxusercontent.com/u/392 ... rking.capx

Description of Capx
https://www.dropbox.com/s/f5ef15ri81gdd ... .37.49.png

Steps to Reproduce Bug
  • Load game on ios7.1
  • Observe how text field never changes its displayed text from "audio is preloading" and music never starts

Observed Result
Music doesnt preload and never starts to play

Expected Result
Music preloads and starts to play

Affected Browsers
  • iOS 7.1 Safari

Construct 2 Version ID
173
B
22
S
7
Posts: 94
Reputation: 1,783

Post » Wed Jun 18, 2014 10:34 am

Closing as won't fix, it's a limitation in iOS. Music cannot be played or preloaded until a touch event and the Audio object works around this for you (if you use the Play action, it queues it to play in the next touch event on iOS). The older release probably worked because it routed music through the web audio API, but this resulted in longer delays before music started playing and much higher memory use, so we put it back to the streaming mode which can only start in a touch.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest