Question regarding mpv (libmpv) use as a NuGet Package in Visual Studio 2022 #15769
Unanswered
Dyr-Fenrir
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking to incorporate a video player in one of my C# WPF project and I am planning on using MPV.
I went ahead and took a look at the NuGet packages already available and I noticed two who caught my interest:
mpv by Frost (the library by itself, not a player)
MPV.NET by hudec117 (an actual player based using the MPV library)
MPV.NET needs to use a compiled MPV library in the form of a .DLL and the mpv NuGet package does contain the required .DLL.
I can easily use "using MPV.NET" and then proceed with the player code:
But this require the previously mentioned .DLL in a folder to work correctly, for example, in "lib" in the build folder.
My question is:
How may I use the mpv NuGet package to create said .DLL in the build folder automatically since I am not able to use it with "using" as well and then use the other player package to use that .DLL (probably by just proving a valid path) please?
The reason I am mainly interested with the mpv package, is that it would take care of updates more easily than me copying the .DLL every time in another folder for the player package.
In short, I need both packages to work with each other.
May you help me out with this please?
Thank you for your time and help, it is greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions