Results 1 to 5 of 5

Thread: VLC media player help

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    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.

  2. #2
    Frenzied Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    1,170

    Re: VLC media player help

    This is for c# but should help with the way forward
    https://stackoverflow.com/questions/...tory-not-found
    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)

  3. #3
    Hyperactive Member -Franky-'s Avatar
    Join Date
    Dec 2022
    Location
    Bremen Germany
    Posts
    481

    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

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2006
    Location
    MI
    Posts
    2,012

    Re: VLC media player help

    Quote Originally Posted by -Franky- View Post
    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
    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...

  5. #5
    Hyperactive Member -Franky-'s Avatar
    Join Date
    Dec 2022
    Location
    Bremen Germany
    Posts
    481

    Re: VLC media player help

    Quote Originally Posted by nbrege View Post
    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
  •  



Click Here to Expand Forum to Full Width