The MediaPlayerEventManager seems to cause NullReferenceException as the GarbageCollector destroys the delegates. Couldn't find out why this is happening:
'CallbackOnCollectedDelegate': "LibVLCSharp!LibVLCSharp.Shared.EventCallback::Invoke"
Unfortunately i don't have the exception in english.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
...
Linked items
0
Link issues together to show that they're related.
Learn more.
The player is inside an UI class (control). However i try to use the eventmanager, at one point debugging crashes. I guess this is the most simple implementation i tested so far. Same result
The program is not Xamarin.Forms, i use Eto and implement VLC inside WindowsFormsHost using Hwnd to attach it. Without EventManager it works. Unfortunatly i need events to get the videosize on playing to resize the host window.source.zip
SetDirectory seems to work, somehow it didn't work before.
My point is you should only need to call Core.Initialize() and let the wrapper figure out how to find and load the dlls. If you need to perform additional pinvoke statements for it to work, something is broken. I'll have a look later.
Also, Eto is not one of the currently supported UI frameworks but if you want to make a basic control and integration for it on a few platforms, feel free to do so. PRs welcome :)
Yeah Core.Initialize works, it was my mistake. I need to change a lot for a PR as it's really messy right now. For Eto and Wpf it uses the same way. Autoresizing doesn't work using Hwnd but i figured out how to solve this. Once i implemented most features i will make UserControls for Wpf and Eto.Forms