ffmpeginteropx / FFmpegInteropX

FFmpeg decoding library for Windows 10 UWP and WinUI 3 Apps
Apache License 2.0
210 stars 53 forks source link

FFmpegInteropX crashes on WinUI3 #342

Closed zjarri closed 1 year ago

zjarri commented 1 year ago

Hello everyone, I'm trying to get the provided WinUI3 sample to run but it keeps throwing an exception on " Config = new MediaSourceConfig();".

  __System.TypeInitializationException: 'The type initializer for 'WinRT.ActivationFactory`1' threw an exception.'_
  __COMException: Klasse nicht registriert (0x80040154 (REGDB_E_CLASSNOTREG))___ (Class not registered)

The Project uses:

Im lost in this error message, since im quite new to development. I hope this is the right channel for my question, if not then excuse me.

brabebhin commented 1 year ago

Install https://www.nuget.org/packages/Microsoft.VCRTForwarders.140

lukasf commented 1 year ago

You must run the "MediaPlayerWinUI (Package)" project, not "MediaPlayerWinUI". Unpackaged apps have additional requirements.

brabebhin commented 1 year ago

Our sample doesn't use mvvm community stuff though.