I have a file path. How can i know if there is a media file, supported by my backend? And then if it is a media file how can i read its ID3 tags?
I have a file path. How can i know if there is a media file, supported by my backend? And then if it is a media file how can i read its ID3 tags?
The only automatic way is to try to open it. Alternatively you can use an external library to query the file for its type, codec and data but then your application probably won't be portable anymore.
Bookmarks