hudec117 / Mpv.NET-lib-

.NET embeddable video/media player based on mpv for WinForms and WPF
MIT License
138 stars 36 forks source link

mpv-2.dll #51

Open mysteryx93 opened 2 years ago

mysteryx93 commented 2 years ago

As discussed here, mpv-1.dll has been renamed to mpv-2.dll.

The library should be updated to reflect this change.

Oh. Initialization crashes so it will require a bit more work to fix.

Mpv.NET.API.MpvAPIException: 'Failed to load Mpv "mpv_detach_destroy" function.'
TW2 commented 2 years ago

Go to "Mpv.NET>Player>MpvPlayer.cs" at "possibleLibMpvPaths" constants and replace:

"mpv-1.dll" by "mpv-2.dll" @"lib\mpv-1.dll" by @"lib\mpv-2.dll"

Go to "Mpv.NET>API>MpvFunctions.cs" at "LoadFunctions" declarations and replace as mentionned by the last pull request:

mpv_detach_destroy by mpv_destroy

Copy a 32bits dll of mpv-2.dll and, fortunately, the samples work!

We can now wait for an official push!

hudec117 commented 2 years ago

Support for the latest libmpv DLL will be in version 2!

mysteryx93 commented 2 years ago

What other features are you planning for v2?

hudec117 commented 2 years ago

https://github.com/users/hudec117/projects/2/views/1

You can also look here for the current changes https://github.com/hudec117/Mpv.NET-lib-/pull/53

jscoys commented 9 months ago

Hey! I'm currently struggling with this issue! I have both error messages, and a I installed it through the nugget package I can't find sources to modify them :-(