Audio "on ended" isn't triggered in iOS

Bugs will be moved here once resolved.

Post » Mon Aug 31, 2015 11:26 am

Problem Description
I've created mobile game and it runs well on Android devices, but when I run my game on iOS audio "on ended" condition isn't triggered. I've tested the game in the device browser and in the app exported with IntelSDK.

Attach a Capx
https://drive.google.com/file/d/0ByR2TXt1oVtHTFpBVzA1MWIyd1U/view?usp=sharing

Description of Capx
This Capx plays a sound on layout start and "on ended" of the sound changes the background color of the layout and updates text

Steps to Reproduce Bug
  • OPen the project an run it in local network
  • Test it on windows or on Android in a browser - you can see the backgound color is changed on sound end
  • Test in browser on iOS - the background color isn't changed and the text is not updated

Observed Result
When the sound is finished the background color isn't changed and the text is not updated

Expected Result
When the sound is finished the background color should be changed and the text should be updated

Affected Browsers
  • Chrome: (YES)

Operating System and Service Pack
iOS 8.0

Construct 2 Version ID
r212
B
10
S
2
Posts: 71
Reputation: 696

Post » Mon Aug 31, 2015 5:14 pm

I can confirm that I saw this in r206 as well. This may be related to https://www.scirra.com/forum/viewtopic.php?f=151&t=153091
B
2
Posts: 2
Reputation: 154

Post » Wed Sep 09, 2015 1:14 pm

I think it's a bug in Safari 8, and it appears fixed already in Safari 9, but I've worked around the Safari 8 bug in the next build anyway.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Fri Oct 30, 2015 7:02 pm

@ashley or anyone who might have some insight on this ... im still having the issue of IOS 8 not recognizing the on "tag" ended events ... BUT this is only when im using audio outside of c2 ... by this i mean going into the data.js and changing the "media/" to my "http://clientswebsite.com" where my client has audio hosted in a folder.

in my project im loading the rest of the path in the play (by name) action ""/audio/gameSounds/mysound.m4a" and the on ended events that follow in the code are not recognizing the sound has ended.

this DOES work in 9 and on desktop and on android. .... i will also reiterate that 8.4 DOES recognize the "on ended" if im using sounds imported into c2 and not mess with the "media/" folder in data.js

thoughts???

thanks!
B
27
S
5
G
1
Posts: 31
Reputation: 1,443

Post » Fri Oct 30, 2015 7:38 pm

Are you sure you're using r216? We fixed some bugs with this recently, including the firing of "on ended" on iOS 8.

Modifying data.js like you say is not supported, and given that you say it works on iOS 9 and everywhere else, it sounds like it will be fixed anyway once everyone updates iOS.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Fri Oct 30, 2015 8:12 pm

yea im in r216 ... and i agree totally with "it works on iOS 9 and everywhere else, it sounds like it will be fixed anyway once everyone updates iOS" just thought id ask the pros!

thanks for the reply
B
27
S
5
G
1
Posts: 31
Reputation: 1,443

Post » Thu Dec 17, 2015 7:58 am

I use 216 and I still have the issue in iOS 8
B
10
S
2
Posts: 71
Reputation: 696

Post » Thu Dec 17, 2015 11:49 am

This is a closed bug report, please file a new report if you still have trouble, and be sure to test the latest release (currently r218).
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Tue Dec 29, 2015 9:20 am

Hi Ashley!

I've tested the new release on iOS 8 and iOS 9. In iOS 9 sound end event fires well, but in iOS 8 the event doesn't fire.

Olga
B
10
S
2
Posts: 71
Reputation: 696

Post » Thu May 05, 2016 5:20 am

Message: appsbazar can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
hello
I would like to suggest you that kindly create you app on cross platform like "phone gap" form which you can run your application on both android and ios platform. for reference you can contact best mobile app creator to know more information.
B
2
Posts: 2
Reputation: 154


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests