TakeSnapshot doesn't work on libvlc UWP - Workedaround
Summary
I have been unable to get TakeSnapshot to work in my basic UWP test app. It always returns TRUE, but never saves a file. I have tried numerous formats for the path string. The UWP app is enabled for saving to the "Pictures" library and I have verified that the app can save there. Any help would be appreciated.
Minimal project and steps to reproduce
Repo link https://Tropicware@dev.azure.com/Tropicware/BasicVLC/_git/BasicVLC Open solution in Visual Studio. Run/debug x86 wait for video stream to play. Enter path to the pictures library for windows account EG. c:\Users\username\Pictures Press the SnapShot Button. Check pictures directory for snapshot.
What is the current bug behavior?
TakeSnapShot does not save a file.
What is the expected correct behavior?
SnapShot file is saved in the allowed Pictures Library set by the path string.
Environment
- OS: Windows 10 64bit
- Version 1803
- Device: Lenovo PC
- LibVLC VideoLAN.LibVLC.UWP Nuget 3.11
- LibVLCSharp LibVLCSharp Nuget 3.1.0
Possible fixes
Maybe the VLC dll that saves the snapshot does not have the same permissions to save as the UMP app?