When I try to play an mp3 file that I've uploaded to the blobstore,
Chrome chokes. By chokes, I mean that it shows a player, then grays-
out the play button without ever playing the mp3. I suspect this to be
an issue with either my code or GAE just because if I serve the same
mp3 file as static content through GAE the file plays fine. I used
fiddler to capture the traffic, and the only difference between the
working static-content case and the non-working blobstore case appears
to be that GAE is respecting the Content-Range header in the blobstore
case, even if it is explicitly told not to use that header. To test
this theory, I tried setting the range, which didn't work (Content-
Range from the request was still respected, and set in the response)
and passing use_range = False to send_blob, which also didn't work
(Same behavior.) My code for serving the mp3 file from the blobstore
is below.

class SongServeHandler(blobstore_handlers.BlobstoreDownloadHandler):
    def get(self):
        song_id = self.request.path.split('/')[3]
        song = SongInfo.get_by_id(int(song_id))
        if (song is None):
            self.error(404)
        else:
            blob_info = song.audio
            self.send_blob(blob_info, content_type =
blob_info.content_type, use_range = False)

Is this a known issue? I can't find any record of it in the issue
tracker, and according to other posts here, people seem to be playing
media from the blobstore just fine. Is there something I'm missing
from my code?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to