HTML5 audio blob would not play on Android

1 view
Skip to first unread message

Amir Gonnen via StackOverflow

unread,
Jul 27, 2014, 4:23:39 PM7/27/14
to google-appengin...@googlegroups.com

I'm serving an audio file (WAV file that contains a short uncompressed PCM) from my GAE app using BlobStore. On a click event, I set audio.src and call audio.play().

Now here is the weird part:

  • When working locally - it plays well on both IOS and Android.
  • After deploying to GAE, it plays well on IOS - but not on Android!

No error is shown - it just plays nothing. As far as I can tell from GAE logs, the audio file is served in all cases. In case of Android I can see a requests from "Player/LG Player 1.0 for Android 4.4.2 (stagefright alternative)".

Any idea what's going on, or how to debug this?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/24985256/html5-audio-blob-would-not-play-on-android

Stuart Langley via StackOverflow

unread,
Jul 28, 2014, 4:49:00 AM7/28/14
to google-appengin...@googlegroups.com

Most likely this is due to the chunked response when serving a blob.

Here is an issue tracker item about audio files not playing correctly in some browsers.

Here is a test web site I put together while back that illustrates the problem.

As for workarounds - You can put the file on cloud storage and then play it from there, as long as you're not concerned about people hotlinking the file.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/24985256/html5-audio-blob-would-not-play-on-android/24991481#24991481
Reply all
Reply to author
Forward
0 new messages