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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -