-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WinUI 3 support: Open issues #301
Comments
The video effect is probably not a bug in mpe. I tried with a mediaplayer object in frame server and still doesn't work. It's probably some shenanigans related to COM activation. |
Unpackaged apps can use the Microsoft.VCRTForwarders.140 Nuget package to make the project work. See this blog post under Handling Dependencies for more information |
Interesting read @Minmoose. There's still quite some unpleasant manual work required as it seems. I hope that MS is working on improving the copy deployment scenario. The compiler should be able to generate the required info automatically from the WinMD file and the dll. |
My apologies, I wasn't very clear, nothing should have to be changed, it is all automatic, all you have to do is add the Microsoft.VCRTForwarders.140 NuGet package to the app consuming FFmpegInteropX I would suggest adding Microsoft.VCRTForwarders.140 as a dependency to the WinUI NuGet package for FFmpegInteropX So perhaps a separate NuGet package for unpackaged apps that has the Microsoft.VCRTForwarders.140 dependency? |
I don't think it would be a good idea to include the forwarders as a NuGet dependency in a WinUI build. It is only required for unpackaged apps. For packaged apps, this would mean unneccessary dlls being deployed (and it could even cause trouble). Someone who wants to create an unpackaged app can add the dependency themselves. If it is really just adding the Nuget, then it is much easier than expected. I could add a note in the readme about that. |
Indeed I could get our WinUI sample app working as unpackaged app. Besides adding the forwarders NuGet, I had to edit the .csproj file and add It is good to know that getting unpackaged apps working is rather painless. Still I guess that most or many apps will use packaged deployment, so we should not add stuff that is not required by that deployment type. |
adding this fix the issue, but it broke my CI builds, i'm unable to run dotnet publish, this giving this error.
is there a i away could bundle the dlls in the installer and remove the nuget reference? |
I am not sure if that is possible. Is it not possible use the normal MSBuild instead of the .NET Core MSBuild on your CI? |
Just a thought, for winUI we technically can use c/c++ APIs to open the files by path, and not rely on the winRT IRandomAccessStream. |
Indeed, we could (and should) do that. |
How would i do that? |
I'm not so sure the basic video effect bug is related to the MediaPlayerElement. |
There is an open issue on IBasicVideoEffect in the CsWinRT repo: microsoft/CsWinRT#1088 It looks like there are multiple unresolved issues, which prevent proper usage of the IBasicVideoEffect interface with CsWinRT. The ClassNotRegistered can be worked around with manual registration in the manifest, but then additional problems occur. If we make a WinRT version, it has to come without IBasicVideoEffect support (at least initially). |
This is to keep track of the things that do not work 100% on WinUI.
The text was updated successfully, but these errors were encountered: