How do I never lose sound on mobile games (web)

Get help using Construct 2

Post » Thu Oct 15, 2015 5:14 pm

Hey Constructers!

I develop games for web ( http://www.crystalgames.space ) and there is a little problem on mobile devices.

When you start a game, play a little and go somewhere else on device while leaving the game running in background (Chrome's tab) and/or locking and unlocking the device and then coming back to the game - the game sometimes totally loses all sound and goes silent and only refreshing the game works.

This happens on both iOS and Android devices.

Tried many things and looks like it's mostly browser/OS thing but maybe someone knows the solution for this problem?

Looks like when the game's tab makes no sounds for a longer time - Chrome stops the sounds permanently for this tab. Even if you come back and do something that makes sounds in particular game - the game is irreversably muted and as i said before - only refreshing makes the sounds to work again.

Thanks!
Positive, inspiring and jazzy games!

www.crystalgames.space

Enjoy!
B
17
S
8
G
3
Posts: 174
Reputation: 3,455

Post » Sun Oct 25, 2015 8:52 pm

***Looks like when the game's tab makes no sounds for a longer time - Chrome stops the sounds permanently for this tab (if not active). Even if you come back and do something that makes sounds in particular game - the game is irreversably muted and as i said before - only refreshing the game makes the sounds to work again.***

Any workaround @Ashley ?

Thanks!
Positive, inspiring and jazzy games!

www.crystalgames.space

Enjoy!
B
17
S
8
G
3
Posts: 174
Reputation: 3,455

Post » Mon Oct 26, 2015 12:26 pm

Make sure you're using the latest release which includes bug fixes for audio, particularly on iOS 9.

I can't really help from the information you've provided. If you think something is wrong with C2, please file a bug report following all the guidelines. I've seen previously that your site had the wrong MIME types set up, and note that can also cause audio to fail to play in some circumstances.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,852

Post » Mon Oct 26, 2015 1:53 pm

Okay, thanks :)

Will let you know if i will be able to reproduce it!
Positive, inspiring and jazzy games!

www.crystalgames.space

Enjoy!
B
17
S
8
G
3
Posts: 174
Reputation: 3,455


Return to How do I....?

Who is online

Users browsing this forum: amazingdream, sean080, Yahoo [Bot] and 22 guests