android - How to find if Url is Audio/Video -


i have simple question want identify url audio/video , not.

everthing working fine have problem url shown text/html on content-type

like url below shown text/html in content type: http://dl.blugaa.com/hd.blugaa.com/f613178a0d993f8645ed530896937a22/cizuv/70%20hazaar-(mr-jatt.com).mp3

but url shown audio : http://mp3light.net/assets/songs/393000-393999/393496-the-hills--1439131681.mp3

can explain me why , how identify url best way. in advance

there no way identify content of response until execute http request. can have url ending extension, buy response still different. recommend trying parse response http request, , if doesn't work or headers in response not matching expected one, popup error message.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -