How do I make mobile browser audio works

Get help using Construct 2

Post » Wed Mar 12, 2014 12:03 am

From what I've understand, mobile browsers and audio arent the best friends, but I don't have a lot of details, I think I understood that:

-Some browsers can only start to play audio after the first touch (maybe only on touch input?)
-Some do supports the web audio API and others don't, so in some cases, not a lot of sounds can be played together

Is there something else I should be aware of?
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Mar 12, 2014 8:05 pm

Mobile browsers also have bad performance. So the use of a wrapper is from benefit.

For the first touch you can simply make a "push to start" message on the title menu.
B
10
S
2
Posts: 135
Reputation: 1,090

Post » Wed Mar 12, 2014 10:25 pm

If you are targeting windows phone then you also need to follow @TheHen's tutorial as he goes over using functions to play sound based on what mobile device you are using. Especially since Windows Mobil needs .wav files... instead of ogg or m4a...
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Wed Mar 12, 2014 10:26 pm

I guess I should try and retry (I'm not going through wrapper, just browsers)
Thank for the help guys ^^
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Mar 12, 2014 11:18 pm

These days it should "just work", except that on iOS Safari and Chrome for Android music might not start until the first touch.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Tue Mar 18, 2014 7:38 am

@Ashley - That is great news. Then we just need the performance boost when exporting directly to Windows Phone ;)

Guess I should try to get Barbarian Brewery to work for Windows Phone again.
B
9
S
4
G
1
Posts: 104
Reputation: 2,278


Return to How do I....?

Who is online

Users browsing this forum: JoyfulDreamer, newt, StillSarah and 18 guests