[Audio] Possibility of "Pause" ?

For developers using the Construct 2 Javascript SDK

Post » Fri May 11, 2012 4:00 pm

When looking through the code of the "Audio" plugin, I saw a
[quote]setSuspended[/quote] function.
Is it possible to use it as a "pause" function, or is it for something else ?
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Fri May 11, 2012 4:03 pm

Suspending is when the entire app is going in to the background and events stop running. I could add a pause option, but like most other audio features it's not supported everywhere.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri May 11, 2012 6:56 pm

Is it possible to have work at least on Firefox & Chrome ?
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Sat May 12, 2012 7:39 am

Not in the current FF at least, but I guess it should be possible by FF 15.
The FF guys seems to aim for FF15 to be big about HTML5 gaming and are currently working on improving audio and other current features.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sat May 12, 2012 10:44 am

@Kyatric : I'm surprised, because when checking on the MDN, I see that you can call .pause() in FF on media elements.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Sat May 12, 2012 11:34 am

@Pode: I was in an IRC channel on mozilla's IRC and they were saying the audio was being rebuilt as the spec itself had some weaknesses/bad design decisions and/or its current implementation in FF is buggy by design.

This is being worked on.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sat May 12, 2012 2:42 pm

I'll add it anyway and see how it goes - on the todo list.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sat May 12, 2012 11:03 pm

@Ashley : thanks a lot !
B
33
S
9
G
6
Posts: 709
Reputation: 6,704


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests