Music plays in Preview but not in exported HTML5 project.

0 favourites
  • 3 posts
From the Asset Store
In this template the music plays without looping in your game
  • 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: https://www.dropbox.com/s/mqq4w8dlwlkg8 ... .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____

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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: http://gamescourse.blogspot.co.uk/2015/ ... lancf.html

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)