Protected MP3 files not playing correctly in Chrome
-
Everything’s working with this plugin for me except that MP3 files are not playing correctly in Chrome. They work OK in Firefox and IE. The exact issue is that the file loads and plays, but only loads the first 5 minutes or so if the MP3 is longer than that. You’re also not able to seek within the MP3 at all — can’t jump ahead to a later point or back to an earlier point.
I initially thought this was player-related, but after a lot of investigation I found that it happens regardless of whether I play the MP3 in an in-page player using the default WordPress media player, an alternate plugin-based mediaplayer, or whether I view the file directly in a browser window using the browser’s native player.
If I unprotect the same file, it works using any of the above methods.
This happens with any MP3 I try, from various sources and of various lengths. For mp3s longer than ~5 minutes, when playback reaches the end of the loaded portion, it sometimes loads another chunk, but usually just stops playing.
I assume the problem is in mv-file-handler.php but no matter what changes I make to the MIME type or other headers, I get the same results.
The only difference I can see in the network traffic is that the content range is different for the protected and unprotected versions. The “Range” field in the request header says “bytes=0-” for the protected file and “bytes=0-1048575” for the unprotected one.
It also looks like mv-file-handler.php doesn’t have anything in it to take partial content requests into account.
- The topic ‘Protected MP3 files not playing correctly in Chrome’ is closed to new replies.