![]() This would be a player bug, and short of filing a bug report, there's nothing you can do about it directly.Ĭonsider Opus? You'll get much higher quality, and it's quite compatible. ![]() There's probably a fixed-size buffer somewhere that's expecting say 8KB of data and it's getting a small fraction of that due to the low sample rate and bitrate. You should also know that your sample rate is extremely low, as is your bitrate, particularly for using stereo audio. I do think it's reasonable to have your file played completely through though. Basically, you can't ever expect timing to be correct with lossy encoded audio that has no container or bitstream format indicating what time it is. There are a lot of hacks/tricks around file length, byte offsets, and guessing, but that's about it. Also, you should know that with MP3 it isn't possible to precisely set seek points without decoding the whole file. They'll use things like fixed-size buffers. Update The data from the main wav file I'm receiving is the followingĪ lot of audio players, particularly around MP3, are quite buggy. Any thoughts would be greatly appreciated. One of my requirements is that I have to have this protected and out of a public directory, so I have to serve it through PHP as the user has to be authenticated before they can play the file. The stuff I've tried hasn't really helped. I've pretty much narrowed down the problem to something that happens from calling the file on my server to bringing it to my browser. Header("Content-Disposition: inline filename=\"\"") header("Content-Type: audio/mpeg charset=binary") Messed around with the headers of the file with no luck. It shows the file is only 7 seconds long. Instance) they are 9 seconds long, but when I play it in the browser Downloaded the file through the browser and the file and.Verified the mime type of the browser mp3 file using file and it's audio/mpeg charset=binary.Downloaded the file directly from the server, and it DOES play.The problem is that when listening, the browser (Safari and Chrome at least) will cut off the last 1-2 seconds of a recording. I have an mp3 file on my server that I need to serve to my end users so they can hear the recording and verify that it's correct. I've searched and googled for quite a bit with nothing really able to resolve my issue.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |