I find a way to use mpv and opengl in Avalonia
https://github.com/Zhou-Pixel/AvaloniaWithMpv
It is my example and it still have some problems
Great. Does it use OpenGL API integration, or what method does it use? Has filenames with OpenGL.
That was literally published 6 hours ago. Keep working on it, once you have something that works, I can integrate it into MediaPlayerUI.
Did you look at this sample? https://github.com/shodo/MPVCore/blob/master/SDLMpv/SDLMpv/MPV.cs
at this sample?
This is my new example https://github.com/Zhou-Pixel/ApvPlayer.git and it uses opengl fbo to render video in Avalonia
It seems all events do not work in OpenGlControl so I can only suspend the work
Looks like it's been quite a lot of work! I won't look at it for some time because I got other priorities at the moment.
You might want to check that MPV implementation https://github.com/hudec117/Mpv.NET-lib-
It's for WinForms/WPF and never got updated to MPV-2 API, but has perhaps a more established and complete API. It seems like what we need is that library but updated for OpenGL support and MPV-2 APIs; either update his library (he was working on a new version that never got published) or develop a whole new library from scratch.
For MediaPlayerUI, it would help a lot to separate the MediaPlayer UI integration from the MPV API complexity, so if that's done in a separate library, that's better.
Someone finally did an OpenGL implementation API https://github.com/homov/LibMpv