ampache/ampache — pull request #523 by Razrael (2014-10-20 19:21:52+00:00)
Title: [BUGFIX] #522 add media type for transcoded files

I figured out where the problem is when the time is not set.
It is actually a missing / wrong header in the streamed transcoded file. So without my change, it says mpeg. And with the changes it is ogg (at least in my case because it is configured like this).

The array with $types['real'] gets initialized with mp3, so this will obviously not work when ogg are sent and the header then is for mp3.

The else section on 131 is not necessary anymore because it is the same as in the if, but I wonder what it should do... Does the player not send the needed filetype, or what are we missing?

So I think it will also fix the short replay. But I could not reproduce this on my Linux machine at home, so I will test it tomorrow at work.