I want to write a program that uses mediainfo.dll. I use MediaInfoDLL.cs for getting video file information such as Size, Duration, etc. When I select a video file with filepicker, the open method of MediInfoLib namespace does not return video file information. I try it with WinForms and it worked. Do you know the problem is UWP file permission or MediaInfo UWP campatibility?
Asked
Active
Viewed 112 times
1
-
1Could you give an example of the code you used that isn't working? – Foxocube Nov 14 '19 at 16:35
-
2`mediainfo.dll` isn't compatible with `uwp` *but* there's a wrapper that may work [here](https://www.nuget.org/packages/MediaInfo.DotNetWrapper/) and or [here is a better one](https://www.nuget.org/packages/MediaInfo.Wrapper/) – Trevor Nov 14 '19 at 16:36
-
I used these wrappers but all of fields that returned after opening files were null or empty. So I used the MediaInfoDLL.cs that downloaded with mediainfo dll package. but when I use same code with winforms application everything worked – Morteza Nov 14 '19 at 16:45
-
oh, you said it ISN't compatible – Morteza Nov 14 '19 at 16:52
-
From MediaInfo developers: we didn't find a quick method for loading a DLL in UWP and ended to use a static version of MediaInfoLib in our MediaInfo UWP version, you could check [our repo](https://github.com/MediaArea/MediaInfo/tree/master/Project/MSVC2017/MediaInfo_UWP) for how a UWP project can interface with the static lib. – Jérôme Martinez Nov 14 '19 at 16:53