Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mfkl/libvlcnugetcpp


https://github.com/mfkl/libvlcnugetcpp

Last synced: about 6 hours ago
JSON representation

Awesome Lists containing this project

README

        

# A C++ LibVLC sample project using Visual Studio MSVC and NuGet

This works out of the box for LibVLC 3.0.21 and above, thanks to this commit: https://code.videolan.org/videolan/vlc/-/commit/ab4f2bc2ec72c69fe0220d4f519b67cc5b7fc22f

For older versions: the libVLC headers are not (yet) 100% MSVC-friendly, so a tiny local patch is required to make this build for now.

Locate your Nuget-downloaded LibVLC headers at `C:\Your_Project_Path\LibVLCNugetCpp\packages\VideoLAN.LibVLC.Windows.3.0.20\build\x64\include\vlc\libvlc_media.h` and add the following line at the top of the file:

```diff
+ #if defined(_MSC_VER)
+ #include
+ typedef SSIZE_T ssize_t;
+ #endif
```

Press F5 and the video will play!