VLC.MediaElement icon indicating copy to clipboard operation
VLC.MediaElement copied to clipboard

takeSnapshot command creates zero-byte file

Open msdorachua opened this issue 8 years ago • 3 comments

Hi

I tried to take a snapshot of a playing video in the control by using the code below and though it runs successfully and a file was created with the command, the file created is of zero bytes.

string path = Path.GetTempFileName(); myvlc_control.MediaPlayer.takeSnapshot(0, path, 1280, 720);

May I seek some advice if I have used the method correctly in this UWP VLCMediaElement control please? I was able to take a snapshot properly using similar code, using the VLC control for Windows form so I thought the behaviour would be similar for the uwp version.

thanks for any advice or help in advance :)

msdorachua avatar Oct 21 '17 06:10 msdorachua

I was thinking about a permissions problem but even if I add Pictures Library capability (and I save the snapshot into the pictures folder), it doesn't work. Perhaps this method is not implemented in UWP (moreover, this feature does not exist in VLC for UWP).

kakone avatar Oct 21 '17 12:10 kakone

Hi kakone, thanks so much for your reply. :)

Do you mean that the VLC library here below totally does not implement the takeSnapshot method? Anyway to put in a request to ask them to implement it so that it also can work in your control?

https://code.videolan.org/videolan/vlc-winrt

Your control was so easy and nice to use, I wanted to implement a simple FaceDectection app using yr control by taking a snapshot of a streaming RSTP video but got stuck when I realised the takeSnapshot function does not work as expected.

Would you have any suggestions how I can get around it? thank you! :)

msdorachua avatar Oct 22 '17 03:10 msdorachua

the API still exists, but does not work. this is quite disappointing

dmacattack avatar Aug 31 '18 17:08 dmacattack