unosquare / ffmediaelement

FFME: The Advanced WPF MediaElement (based on FFmpeg)
https://unosquare.github.io/ffmediaelement/
Other
1.17k stars 238 forks source link

NUGET Package for 4.2.430 Last stable version does not install on .NET Framework 4.8 #555

Closed LouisCPro closed 3 years ago

LouisCPro commented 3 years ago

When trying to upgrade my FFMPEG package to 4.2.340, VS2019 refuse to finalize because not information of .NET 4.8 Compliance is available in the package ! It is not the case for the 4.2.330, so I mean that it is a dependency problem....

Version Information

Nisse123 commented 3 years ago

You need to clone the repo and not use the nuget package Edit Unosquare.FFME.Windows.csproj replace the line

net5.0-windows

with

net461;net472;net48;net5.0-windows

Edit Unosquare.FFME.Windows.Sample.csproj replace the line

net5.0-windows

with

net461;net472;net5.0-windows

In MediaBlockBuffer.cs a system.indexer [^1] (C#8) is used, replaced it with Linq last i.e. change var lastBlock = PlaybackBlocks.Count > 0 ? PlaybackBlocks[^1] : null; to var lastBlock = PlaybackBlocks.Count > 0 ? PlaybackBlocks.Last() : null; In LegacyAudioExceptions.cs add using System.Security.Permissions; Rebuild and the .Netframework dlls are found in Unosquare.FFME.Windows\bin\Release\net48

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

mariodivece commented 3 years ago

fixed in the latest commit. will release new package

LouisCPro commented 3 years ago

Thanks Mario.