I'm developing an video player for Windows Universal 10 (target version: 10.0.10240.0)
I'm able to launch files from PC to my app and play video as well as I want. The problem starts with I want when I launch a video, subtitle with the same name of video in the folder get it in application, for example I have these files in somewhere in my pc:
The.Originals.S03E14.480p.mkv
The.Originals.S03E14.480p.srt
I want when i Launched this mkv file, can access to srt file too. the code I used:
StorageFile file = args.Files[0] as StorageFile; // Launched file
string filePath = file.Path;
filePath = filePath.Replace(Path.GetExtension(filePath), ".srt");
StorageFile file2 = await StorageFile.GetFileFromPathAsync(filePath);
but for getting subtitle, it gives me ACCESS DENIED exception.
Is this possible to get subtitle without launching them?
thanks