Tim Jenkins(deleted)
|
Re: Determining filetype with explorer interface
|
Tim Jenkins(deleted)
04/21/2010 12:50 PM
post52266
|
Re: Determining filetype with explorer interface
> When I'm using the explorer API is it possible to determine the type of file
> being explored? I know I can use mme_explore_info_get to determine if it's a
> folder, playlist, file, etc. but, if it's a file, can I somehow determine if
> it's a video, audio or photo?
Not using the explorer API.
To know the contents of a file, you really have to open it and parse it. You can make assumptions based on the file
extension of course, but the explorer API doesn't do that.
On the topic of metadata (because that's how you determine what's really inside in many cases), with the explorer API,
you can ask for metadata by using the mme_explore_position_set() function once a session is open. However, the metadata
types available at this interface are not all that useful for what you want to know.
|
|
|