I’m looking for a way to stream WAV files via a web interface without making the files downloadable (or at least hidden enough in the browser cache they can’t easily be found by end users).
The files are recordings of calls within a call center, so due to legal requirements I need to log every time someone listens to a call. This means I must make sure that they can not easily download the file and listen to it later without it being logged.
The files are in g729 format on the server, but I can easily convert them on the fly to wav (or most other audio formats).
I’ve had a look into HTML5 audio and a few flash based players, but haven’t as of yet found anything that doesn’t expose the URL of the file.
If anyone could point me in the right direction, it would be very much appreciated!
I am posting my comment above as an answer as requested by OP.
Maybe a far fetched solution but here goes:
Have them listen to the recording from the same PBX, give them out a pin number that only works for a certain period and when entered plays back the specific recording.
Or you could have your PBX on click, call them back with the recording.
If we are talking about Asterisk, both methods are easy to implement, and safer (It will also save you the g729 to wav conversion 🙂
(Btw on a side note, I have create a PHP library for Asterisk Manager API that you may find usefull. https://github.com/twmobius/Shift8 )
Cheers Andrew 🙂