Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Oh one more thing: it sucks that the only support forum for this rather nice audio player is a single 10-page-long thread that’s being ignored entirely by the developers.

    I’m creating the AudioPlayer object in JavaScript:

    AudioPlayer.setup("flash/player.swf", {
                        width: 1,
                        initialvolume: 100,
                        transparentpagebg: "yes",
                        noinfo: "yes"
                        });
    
    AudioPlayer.embed('audioplayerid', {soundFile: 'audio.mp3'});

    Later, I’m changing the file being played with:

    AudioPlayer.load('audioplayerid', 'audio2.mp3');

    My problem: when I access my page from an internet URL (e.g. https://www.example.com/index.html), everything works fine. If I access the exact same code locally (e.g. file://z:/webfiles/index.html), the AudioPlayer.load function fails with the error “getPlayer(playerID).load is not a function.”

    Apparently the Flash object does not expose the load() function if the URL it lives at is file:// anything. It will also fail to expose the load() function in other cases, such as when you have set the CSS style of the Flash object to hide it in any way (display: none, width:0; height:0;, etc).

    Any info or help on this?

Viewing 2 replies - 1 through 2 (of 2 total)