Android AudioPlayer, intermittent playback, streaming MP3.
My app, built for iPhone and Android, is supposed to play back MP3 files that are being served by a custom PHP script. iPhone all works as expected, after a second of "buffering" the MP3 plays. On Android, some MP3's play and others don't. If I browse to the PHP script URL in any browser it works. If I open the URL in my Android browser (outside my Titanium app) it downloads and plays. Is there something crippled about AudioPlayer on Android? Any help is appreciated.
2 Answers
-
Nothing specific. You might seem some hints in the Trace level log to see what the failure is.
-
Found the issue. Apparently, it wasn't so much an issue with Titanium as the content-type being sent by the web server was wrong or not compatible with AudioPlayer on Android (although on iPhone it worked fine). It was set up to send audio as audio/mp3, when I switched it to audio/mpeg, everything worked. Hope that helps someone else.