Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mfkl/libvlcnugetcpp
https://github.com/mfkl/libvlcnugetcpp
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/mfkl/libvlcnugetcpp
- Owner: mfkl
- Created: 2023-11-07T06:38:13.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-14T07:56:30.000Z (12 months ago)
- Last Synced: 2024-10-12T01:25:23.814Z (27 days ago)
- Language: C++
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!