Skip to content

Trial package gives DllNotFoundException

Summary

The VLC-Unity trial package is unable to initialize giving out DllNotFoundException

Minimal project and steps to reproduce

  1. download https://videolabs.io/solutions/vlc-unity-trial.unitypackage
  2. import the package
  3. select any scene in demos/scenes, e.g. vlcminimalplayback
  4. start the editor

What is the current bug behavior?

VLC cannot get initialized and you get DllNotFoundException

What is the expected correct behavior?

VLC gets initialized and the scene works normally

Does it work on other plaforms? Does it work with the official VLC apps?

Only tested on available platform (MacOS)

Relevant logs and/or screenshots

DllNotFoundException: VLCUnityPlugin assembly:<unknown assembly> type:<unknown type> member:(null)
LibVLCSharp.Core.InitializeUnity (System.String libvlcDirectoryPath) (at <639c8cb06058424c83b0c1acaa2ebb0e>:0)
LibVLCSharp.Core.Initialize (System.String libvlcDirectoryPath) (at <639c8cb06058424c83b0c1acaa2ebb0e>:0)
VLCThreeSixty.Awake () (at Assets/VLCUnity/Demos/Scripts/VLCThreeSixty.cs:20)

DllNotFoundException: libVLCUnityPlugin assembly:<unknown assembly> type:<unknown type> member:(null)
LibVLCSharp.OnLoad.OnBeforeSceneLoadRuntimeMethod () (at Assets/VLCUnity/Internal/OnLoad.cs:32)

Environment

  • OS: MacOS
  • Version 15.2
  • Device: MacBook Pro nov-2023
  • LibVLC version and architecture: unknown – does not work
  • LibVLCSharp version: unknown - does not work
  • VLC Unity plugin version: latest from website as of 30/12/2024, can't determine what it is
  • Scripting backend used: IL2CPP

Possible fixes

Add back the libraries to the trial package.