Music plays in Preview but not in exported HTML5 project.

Bugs will be moved here once resolved.

Post » Sat Feb 07, 2015 11:23 am

Problem Description
____ When I create a project with sound and music, both will play in the preview window but once the project is exported in HTML5 format, whether in Chrome, Firefox or IE, the music will not play, but the sound effects will.
I have both ogg and mp4 files for both the music and the sound effects ____

Attach a Capx
Link to minimal capx file is here: ... .capx?dl=0

Description of Capx
____the capx file loads looping music, also loads a sprite which can move in a 8direction and is bound to layout. The sprite can be touched to trigger a sound effect.

Steps to Reproduce Bug
  • Export project as html5 project without minify script.
  • Play index.html in either Firefox, Chrome or IE
  • All working in Chrome and Firefox EXCEPT music. Nothing working in IE

Observed Result
____ Music playing in preview but No music playing once project is exported to HTML5 either at start of layout or after first touch ____

Expected Result
____ Music should start on layout.____

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
____ Windows 7 service pack 1 ____

Construct 2 Version ID
____ construct2-r195____
You do not have the required permissions to view the files attached to this post.
Posts: 11
Reputation: 461

Post » Tue Feb 10, 2015 3:34 pm

Step 2 says: "Play index.html in either Firefox, Chrome or IE"

What exactly are you doing here? If you're running it from disk, then don't expect it to work, it needs to be on a server. Then the server needs to have the right MIME types set up.
Scirra Founder
Posts: 24,931
Reputation: 198,715

Post » Tue Feb 10, 2015 8:05 pm

Thanks so much! It works when played through the server but not from disc, as you say.
We love using Construct 2 when teaching games design to our students. See: ... lancf.html
Posts: 11
Reputation: 461

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests