Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CloudStorageTools::serve() audio not playing on iOS

I'm using GoogleCloudStorage::serve() to serve .mp3 files via a website on Google App Engine with an HTML5 audio tag. Everything was working fine, but after an update for iOS, these devices were unable to play the audio in any browser.

I'm not sure why the code stopped working. Everything else still works fine on Android and Windows in all browsers.

It doesn't relay on Javascript or auto play at all. It's just a simple audio tag with the source being provided by GoogleCloudStorage::serve(), which works everywhere except recently on iOS.

Any input would be appreciated.

like image 955
Guy Avatar asked Jan 15 '17 10:01

Guy


1 Answers

This is a shot in the dark because I don't know anything about serving audio files on iOS, but in case it helps...

About the same time you posted this question, a friend asked me to help him with his website. The website previously played audio, but around the time of your question, the audio stopped working on Safari on OS X.

The existing audio player that was being used was Flash based. I switched his website to playing audio using HTML5 and then it worked fine.

So you may want to check if you are playing audio in iOS with a Flash player and change it to HTML5 if you can.

like image 99
gaefan Avatar answered Sep 20 '22 12:09

gaefan