Færdiggjort

Audio play (mp3) on webpage, files located outside web directory

Task:

What i need from you is the part where an mp3 is called through funcAud() (see below) loaded from a location outside the web directory and played by <audio>.

Info:

I need to be able to have an user (login only) listen to music (mp3) on a website. The content will be loaded through Ajax. Like so:

<script src="./js/[url removed, login to view]"></script>

<script>

function funcAud(){

$.ajax({

//type: 'POST',

type: 'GET',

url: "/[url removed, login to view]",

data: { },

success: function(result) {

$("#aud").html(result);

}

});

};

The [url removed, login to view] is the file that actually loads the song. The thing is that I prefer the mp3's to be located Outside the web directory. Simply because i don't want them to give direct access to the mp3 (for security and data-load reasons).

IF that ain't an option than perhaps you have an other way to handle this, for example hiding the location (mod_rewrite), but it can not be visible in the header (FireBug) or anywhere else and the url probably should be temporary.

Keep in mind that the page offering these mp3s are also accessible for mobile devices.

I am using jquery-1.10.1, so please us the same lib. version.

For test purposes you can use the mp3 on [url removed, login to view]:

[url removed, login to view]

Evner: AJAX, jQuery / Prototype, PHP

Se mere: music mp3 get, web script list files directory, retrieve files web directory perl, play button web swf video files, mysql table queried pdf files pdf show webpage, asp list files web directory, web banner psd files, web directory aspnet, view directory name files cells vba excel, free web banner psd files, directory listing files script

Om arbejdsgiveren:
( 13 bedømmelser ) Vla, Netherlands

Projekt ID: #8581524

Tildelt til:

BaskeeDK

Hoi Timmy, Als ervaren (nederlandstalige) programmeur in het gebied van online media en streaming, wou ik zeker even van me laten horen :-) Uiteraard bent U bewust van het feite dat alles wat beluisterd kan worde Flere

$30 USD in 3 dage
(34 bedømmelser)
5.9

3 freelancere byder i gennemsnit $47 på dette job

prog2u

Dear Sir/ Madam, Kindly check my bid & project completion ratio before awarding. I'm really interested to work on this project, I can start the work now , and can provide the best services from my end. Please come o Flere

$55 USD på 1 dag
(15 bedømmelser)
3.8
odiazdw

Hey there, came acrross your requirement, basically what you need is to locate the mp3 outside of the web project file system and be able to call it using an AJAX get request from inside your web project correct? I Flere

$55 USD in 2 dage
(0 bedømmelser)
0.0