Tuesday, December 18, 2018

issue with server-hosted mp3 played on Android app

There was a query from one of our sister institutions about their Android app having issues playing audio from server1 but playing audio from server2 without problems.

For Audio files that are present in server2 we are able to download/stream, for all the android devices (including Android 4.4 version devices also) . But Audio files present in server1 is not downloading/streaming for few android devices (like Android 4.4 version devices etc). 

Links from both the servers are mentioned for your reference.
http://server1/path/1.mp3 (not working in all the devices) Same links we have tested for https also. 
http://server2/path/1.mp3  (working in all the devices)
Kindly suggest us how to go about this issue.

Excerpts from my reply:

The only difference I can see is that server1 is auto-redirecting to https
So, if the devices are not capable of handling https, [Edit: or http to https redirects] they will fail with server1.
 
server2 is not doing the auto-redirect to https - so, http works as-is on that server.

If the devices are capable of https, perhaps you can just give the https link instead of http link, so that the redirection is not required - in case the redirection is what is causing the failure.

No comments:

Post a Comment