Flixel Demos featuring sound fail to load on Safari



  • I'm kind of new to Haxe and HaxeFlixel. I did the typical steps to install some basic test applications thru Haxe.

    :FlixelDemos/FlxSound$ lime test html5
    

    You'll note that if you open the index.html page in Safari browser, it never loads the game. If you open the javascript log, you'll note that it's 404ing on downloading all the sound files AS MP3s.

    I've noted in other web things that sometimes you need a web server running, so I fired up "python -m SimpleHTTPServer"

    127.0.0.1 - - [25/Sep/2017 16:59:53] code 404, message File not found
    127.0.0.1 - - [25/Sep/2017 16:59:53] "GET /flixel/sounds/beep.mp3 HTTP/1.1" 404 -
    127.0.0.1 - - [25/Sep/2017 16:59:53] code 404, message File not found
    127.0.0.1 - - [25/Sep/2017 16:59:53] "GET /flixel/sounds/flixel.mp3 HTTP/1.1" 404 -
    127.0.0.1 - - [25/Sep/2017 16:59:53] "GET /assets/xml/menu.xml?199938 HTTP/1.1" 200 -
    127.0.0.1 - - [25/Sep/2017 16:59:53] "GET /flixel/flixel-ui/xml/default_loading_screen.xml?199938 HTTP/1.1" 200 -
    127.0.0.1 - - [25/Sep/2017 16:59:53] "GET /flixel/flixel-ui/xml/default_popup.xml?199938 HTTP/1.1" 200 -
    127.0.0.1 - - [25/Sep/2017 16:59:53] "GET /flixel/flixel-ui/xml/defaults.xml?199938 HTTP/1.1" 200 -
    127.0.0.1 - - [25/Sep/2017 16:59:53] "GET /flixel/images/ui/button.png?199938 HTTP/1.1" 200 -

    It does find all of the UI Assets, however.

    I deemed all this very odd. So, I found the place in the demo code that did this:

    #if flash
        sound_id += ".mp3";
    

    And removed all of the mp3 paths. Yet safari still looks for mp3s rather than oggs.

    I copied over the mp3 files manually into the bin/ as a test, but it still wants "beep" and "flixel" as mp3s, those still error, and now there's an error creating the flash audio plugin. What's odd, tho, is it appears to be using createjs's sound library under the hood. I can say from experience that this js library works under safari.

    Any help or insight would be appreciated.



  • Try Firefox.
    Also in Windows, lime automatically runs the local web server and opens it in the browser, does it not work in macOS?


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.