I need to track without player. … Is it even possible to do that?
Not really.
All you know from the server end is that the file was accessed. This doesn't tell you whether or not it was played, and for what ranges.
For example, suppose this happens:
- User visits page with reference to audio file.
- Browser downloads the first 30% of the audio file, in case the user clicks play.
- Server tracks this HTTP request and assumes the listener heard the file.
- User never clicks play. Audio is never heard, and there's no way for the server to know.
Or, suppose this happens.
- User visits page, listens to audio file.
- Server tracks that the whole file was downloaded.
- Browser caches page and audio file.
- User visits page 1,000 more times, but each time it's served from their local cache.
- Server has no idea that the file was played more than once.
The only way you can really track this level of detail is to measure it where it's actually being played.
apache
andnginx
, interesting. You could use the server logs for when the file has been called directly.