I copied their lib, include, and dll files into the appropriate places and the example code I gave above now works. I found an older project online where someone gave simple examples using libVLC 2.x.x.x. I took the DLL and includes out of the official downloads, but I always get access violations. Another thing that you should realize is that the module that had the vulnerability that potentially lead to a security threat was removed from the updated version of VLC media player well over a year ago. While playing around a bit more, I've come to realize that something is wrong with the files I'm using. VLC since version 3.0.3 has the correct version shipped, and MITREcorp did not even check their claim. Libvlc_media_player_set_nsobject(mp, view) īoth the link I tried, replacing the original, and the file path for the one on my PC are valid.Īny ideas? I feel like there's something simple I'm missing here. Libvlc_media_player_set_xwindow(mp, xid) * This is a non working code that show how to hooks into a window, Mp = libvlc_media_player_new_from_media(m) // This is line 23 * Create a media player playing environement */ ![]() M = libvlc_media_new_path (inst, "C:/Repos/test.mpg") ![]() m = libvlc_media_new_location(inst, "") I include Windows.h, and made a macro for it at line 6 (just in case it's used somewhere i can't see): When I look at the code, the first issue is an error - sleep() is undefined. With setup complete, and dlls copied to the debug directory, I followed the directions here: Things have moved around a bit, but I know it needs to be copied into the debug directory where the debug exe appears, so for the moment I've manually copied the DLLs to that directory. I haven't figured out what to do with the bin directory yet. Finally, I copied the contents of vlc-3.0.10.tar.xz/vlc-3.0.10/include to libvlc_include.Īfter setting it up like that, I added the libvlc_lib directory to the project properties in "Linker->Additional Library Directories", and libvlc.lib libvlccore.lib to "Linker->Input->Additional Dependencies." I added libvlc_include to the Property "C/C++->Additional Include Directories". I copied libvlc.lib, and libvlccore.lib into libvlc_lib. I copied the DLLs (libvlc, libvlccore) into libvlc_bin. I've downloaded the LibVLC tarball, and the VLC program. ![]() I recently decided to refresh my C++ skills a bit after not having needed to use them for a while with a project what will utilize LibVLC (something I wanted to learn more about), but I've run into some serious issues just getting a demo working.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |