Finding subtitles in external subtitle files that are located on servers that are browsed using libvlc is not working
I have been looking into an issue where when I play a movie from a server on the local network that is browsed with libvlc (e.g. an SMB server), subtitles that are located in an external file will not be discovered. I have been testing this mostly on tvOS but as far as I can see, this is also an issue on iOS. I would like to provide a fix for this issue but I am not really familiar with libvlc so I hope you can give me some hints.
The problem seems to be that in order to discover media, the VLCNetworkServerBrowserVLCMedia class parses the rootMedia of a folder using the parseWithOptions method which calls libvlc_media_parse_with_options in libvlc. It seems that this function will only return playable media files and not e.g. subtitle files. However, in order to assign subtitles to the media files that are being played, the list returned by libvlc_media_parse_with_options is used resulting in no subtitles being found.
Now my question: Is there an option to deactivate this filtering of only media files in libvlc or is there another API for retrieving the subtitles or do you know how the desktop VLC solves this problem?