mfkl / LibVLCNugetCpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

+ #if defined(_MSC_VER)
+ #include <BaseTsd.h>
+     typedef SSIZE_T ssize_t;
+ #endif

Press F5 and the video will play!

About


Languages

Language:C++ 100.0%