• I have the Encode mp3 URLs option enabled in audio player but it does not work. The MP3 urls are not encoded at all, does anyone have a solution?

Viewing 3 replies - 16 through 18 (of 18 total)
  • Right, got it working finally – it was a confusion in the script in the opening section.

    $_SERVER['DOCUMENT_ROOT']."/audio/mp3/";

    This was because I store my mp3’s below the webroot. If you store below the webroot, the opening line should read:

    $path = "/path/below/your/web/root/where/your/mp3s/are/";

    Least, it did the trick for me.

    Thanks for your help!

    Hey doryphores, or someone else…

    Is there a way to add the prefix “/dw.php?file=” to the [audio:] syntax?

    For example now im using [audio:dw.php?file=test.mp3]

    And i just want to keep using [audio:test.mp3], without the “/dw.php?file=” in the call.

    Thank you! ??

    There is!

    Just add “dw.php?file=” in the audio-player.php file.
    Find this lines and do it…
    Before:

    // Get absolute URLs for relative ones
    				if (!$this->isAbsoluteURL($afile)) {
    					$afile = $this->audioRoot . "/" . $afile;
    				}

    After:

    // Get absolute URLs for relative ones
    				if (!$this->isAbsoluteURL($afile)) {
    					$afile = $this->audioRoot . "/dw.php?file=" . $afile;
    				}

    That’s all! At least, there is just one firefox plugin monitor that can find the url of my mp3 file, the “Cacheviewer”, but others that usually can do it, like “Download Helper” now the can not.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘[Plugin: Audio Player] Encode mp3 URLs?’ is closed to new replies.