I realize it is possible to play audio with Flash and HTML5 by passing a URL.
However, is it possible to get a reference to an audio file using a file browser (either with HTML5 or Flash), to then play this local file, again using either Flash or HTML5?
Of course, this should happen without the interference of a server. Since the file is already on the local system, it does not make sense to route it through a server only to receive the same file again.
Potential solution :
window.URL.createObjectURLandAudio(src)This solution works with creating object urls and the
Imageconstructor but I’m not sure how solid theAudioconstructor support is.Don’t have a browser that supports both of those available but feel free to test them. You’ll need to use the HTML5 File API to upload the audio file and manipulate it with JavaScript