Private static extern IntPtr MpvCreate() #Play You can find the instruction from Xamarin Website /guides/ios/advanced_topics/native_interop/#Accessing_C_Dylibs. Install_name_tool -change libavfilter.6.dylibĭllImport is C# way to do dlopen /api/type// Quick Example: otool -L libavfilter.6.dylib
You can fix it by install_name_tool thanks to brendanzagaeski /xamarin/0004.html. IINA's original dylibs were using to solve the Search Path which will causing System.DllNotFoundException.
IINA /lhc70000/iina/tree/develop/deps/lib project. The most easiest way is grabbing it from /kevinzhow/MPVDemo-macOS/tree/master/MPVDemo/libs and all these libs were modified from This is a Xamarin macOS Project to example how to Use MPV /mpv-player/mpv to play video.