Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

takeSnapshot command creates zero-byte file #42

Open
msdorachua opened this issue Oct 21, 2017 · 3 comments
Open

takeSnapshot command creates zero-byte file #42

msdorachua opened this issue Oct 21, 2017 · 3 comments

Comments

@msdorachua
Copy link

msdorachua commented Oct 21, 2017

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 :)

@kakone
Copy link
Owner

kakone commented Oct 21, 2017

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).

@msdorachua
Copy link
Author

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! :)

@dmacattack
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants