Simplest way to know if a URI leads to an Audio or Video file?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Simplest way to know if a URI leads to an Audio or Video file?

mapcol
This post was updated on .
I came to the point to find out if a link is playable with the Discoverer.
Now the tutorial Meda Information Gathering seems too much code with too many functions to me.

I need a simple way to define if a URI (either file or web url) leads to an audio or video file. I need to distinguish between the two.

Is there such way?