Problem with Audio object on PhoneGap

Discussion and feedback on Construct 2

Post » Fri Aug 28, 2015 11:24 am

Hi All,

I'm having a bit of a problem with C2's Audio object, when used on a PhoneGap build.

I have a layout which plays a sound file (of a countdown 10... 9... 8... etc) and I have the sound file set to looping. I use a pause button on the same layout.

When I pause the sound (on PhoneGap) it works fine. When I resume the track, the loop resets normally (i.e. to the point where the audio file was paused). But from then on the loop always starts from the point where the audio file was paused. So for example, if you pause the app at 5, when you resume, the loop would always then only play from 5 onwards.

I don't know if this is a bug in C2 or not. I've taken a look at the Audio plugin and I'm guessing it has something to do with the way C2 loops audio files.

I've added a capx, so you can see what's happening. But you need to try it through PhoneGap to see the same results.

(capx: https://dl.dropboxusercontent.com/u/78057629/LoopPause.capx)

This is a really important part of the project I'm working on. So I'd really appreciate it if anyone can offer some advice.

Thanks :)
B
33
S
6
G
7
Posts: 494
Reputation: 8,252

Post » Sat Aug 29, 2015 7:14 pm

Bump
B
33
S
6
G
7
Posts: 494
Reputation: 8,252

Post » Mon Aug 31, 2015 1:46 pm

Bump
B
33
S
6
G
7
Posts: 494
Reputation: 8,252


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests