Accessing the file size of vlc_media_t
Hi,
I'd like to implement sorting by file size in the VLC for Android app. Specifically in the network view (sort files by size in my Samba drive), but I guess this is also applicable to other views.
It seems to me that the app gathers the list of files and its metadata by asking libvlc.
From my investigation it seems that libvlc currently exports misc metadata in its vlc_media_t metadata (corresponding to the libvlc_meta_t enum), but I see no mention of the file size in there.
The way I see this (perhaps naive) is libvlc already uses some Samba library to list the files -> it can also get the size of the returned files -> make it available in vlc_media_t -> the app can use it.
Would it make sense to expose the file size as some metadata for a vlc_media_t, or as a separate getter method?
Am I headed in the right direction here?
Thanks