|
-
Jan 17th, 2024, 10:08 AM
#1
Thread Starter
Frenzied Member
VLC media player help
I'm trying to use the VLC media player on a winforms project to play video. I added the VLC NuGet package to my project, added the VLC control to my toolbox items & added the VLC control to my form. When I run the program I get an error that says 'VlcLibDirectory' must be set. After almost an hour of searching I can't find anything that tells me what 'VlcLibDirectory' should be set to. So just taking a stab at what it might be looking for I set that setting to the location of the VLC dll, which is "D:\VB\Projects\VlcTest\packages\Vlc.DotNet.Forms.3.1.0\lib\net45" for this project. When I run it again I now get an error that says "Unable to find the specified file". The setting name implies it's looking for a directory, but the error implies it's looking for a file, so I have no idea what it's looking for or how to make it work at this point. I know VLC is a very popular control & used in lots of other apps. Has anyone used this control before that can help me figure this out? Thanks...
The documentation for that setting is of no help...
https://zebobo5.github.io/Vlc.DotNet...ae16ba03ad.htm
Last edited by nbrege; Jan 17th, 2024 at 10:12 AM.
-
Jan 17th, 2024, 11:14 AM
#2
Re: VLC media player help
All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
Jan 19th, 2024, 05:42 AM
#3
Re: VLC media player help
Does it have to be VLC media player? As an alternative, I would suggest the Windows Media Foundation. From WinVista -> https://learn.microsoft.com/en-us/wi...ed-media-files From Win8 you can also use the interfaces IMFMediaEngine / IMFMediaEngineEx.
https://learn.microsoft.com/en-us/wi...imfmediaengine
https://learn.microsoft.com/en-us/wi...fmediaengineex
-
Jan 19th, 2024, 10:45 AM
#4
Thread Starter
Frenzied Member
Re: VLC media player help
 Originally Posted by -Franky-
Does this work in .Net? All the code samples are C++. I know I can embed a Windows Media Player control on a form, but I was looking for something with a few more features...
-
Jan 19th, 2024, 01:07 PM
#5
Re: VLC media player help
 Originally Posted by nbrege
Does this work in .Net? All the code samples are C++. I know I can embed a Windows Media Player control on a form, but I was looking for something with a few more features...
Yes, it works in all programming languages that can handle COM. You might have to describe which features your player should have.
You can use COM interfaces in VB.NET via <ComImport>. The rest are normal DLL calls, const, structs and enums.
Last edited by -Franky-; Jan 20th, 2024 at 07:18 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|