Long music prevents sound to load on Chrome

Bugs will be moved here once resolved.

Post » Mon Jul 01, 2013 8:47 am

Link to .capx file (required!):
http://www.mediafire.com/?09vook2xd00vid5

Steps to reproduce:
Event sheet has been arranged accordingly in capx above for this bug report. Instruction is provided both in the layout of the capx, as well as here:

Press A to play a sound effect. Play Z to play a short music (~2 minutes). Play X to play a long music (~5 minutes). Switching between 2 music also stops the other music playing.

Observed result:

I think this is a preload bug for long audio on Chrome. On Chrome (Version 27.0.1453.116 m), if you play the long music (press X) first, then all sound effects and other music may not be played ever again. (Try press X, then, Z and A to see this) But if you try play any other sound before the long audio, those sounds that have been played can still be played. (Try press A and/or Z, then X, and then try press A and/or Z again to see this)

TEST: Chrome may no longer load unloaded audio if the next music is long for 90% of the time. For Firefox, I see that version 21.0 and 22.0 can run perfectly without any problem. IE 10 (version 10.0.9200.16618) has a delay but it does eventually play.

Expected result:
All music and other audio on Chrome should still be loaded and played normally.


Browsers affected:
Chrome: yes
Firefox: no
Internet Explorer: no but the delay is quite long, given the fact that the music is streamed locally.

Operating system & service pack:
Win7 ultimate service pack 1

Construct 2 version:
r132 64 bits
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,459

Post » Mon Jul 01, 2013 9:02 am

I was writing too fast. A little fix:

I think this is a preload bug for long audio on Chrome. On Chrome (Version 27.0.1453.116 m), if you play the long music (press X) first, then all sound effects and other music may not be LOADED AND played ever again. (Try press X, then, Z and A to see this) But if you try play any other sound before the long audio, those sounds that have been played can still be played. (Try press A and/or Z, then X, and then try press A and/or Z again to see this)
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,459

Post » Tue Jul 02, 2013 11:34 am

Almost certain this is a Chrome issue and not a Construct 2 bug. If I break in to the debugger to investigate why audio is not playing, it plays again when I resume; if I don't break in to the debugger it doesn't play. This type of strange behavior indicates some kind of problem in Chrome. I'd recommend reporting it to Google (at crbug.com).
Scirra Founder
B
387
S
229
G
87
Posts: 24,245
Reputation: 192,160

Post » Wed Jul 03, 2013 3:51 am

Dear Ashley, I have opened the issue and I already got some responses. They said they don't have enough information on C2 side (ie. how did you implement the program) to take action, so perhaps you could have a talk with them?
Last edited by TwinBlazar on Mon Oct 26, 2015 3:27 am, edited 2 times in total.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,459

Post » Wed Jul 03, 2013 1:38 pm

I'll reply to the thread.
Scirra Founder
B
387
S
229
G
87
Posts: 24,245
Reputation: 192,160

Post » Wed Jul 03, 2013 5:15 pm

Dear Ashley, because the Chrome folks demand a HTML5 page for quicker view right away, I've decided to export my project (with all default setting) into HTML5 form provided here: http://www.mediafire.com/?hgyb9ngjva9wim8 (non-minify version here: http://www.mediafire.com/?65asxevqay0633b)

But surprisingly, if I run this exported HTML5 project in Chrome, I can play any music without any problem, BUT the sound effect OK - 1 (press A) never play no matter what. So we got different result from exported project and running the project from C2 directly.

On Firefox, everything works correctly. IE also works correctly, and more surprisingly, there are no delays upon requesting for playing the music too. I shall report this to the Chromium thread as well.keroberos2013-07-03 17:30:35
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,459


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest