Skip to content

The VLCLibCsharpShared method TakeSnapshot does not work always returns false

The VLCLibCsharpShared method TakeSnapshot does not work always returns false

Summary

The TakeSnapshot method does not work always returns false, when capturing from live feed from Capture device.

Minimal project and steps to reproduce

code -> if(_mediaPlayer.isPlaying()) { return _mediaPlayer.TakeSnapshot(0, filePath, 0, 0); } this call always returns "false" and no file is saved;

Related WPF .net solution added to "https://github.com/tusharhub1978/VLCLIB.git" Functional steps to reproduce the behavior (if necessary):

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What is the current bug behavior?

The TakeSnapshot method does not work always returns false, when capturing from live feed from Capture device.

What is the expected correct behavior?

The TakeSnapshot method should return a true and related snapshot file file should be created on the respective path (bi directory of the project).

Does it work on other plaforms? Does it work with the official VLC apps?

did not try on other platforms

Relevant logs and/or screenshots

NA

Environment

  • OS: Windows 64 bit
  • Version Win10, Win7 embeded
  • Device: Desktop PC
  • LibVLC version and architecture 3.0.11.0
  • LibVLCSharp version 3.4.9.0
  • LibVLCSharp.WPF 3.4.9.0

Possible fixes

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information