MediaPlayerUI.NET icon indicating copy to clipboard operation
MediaPlayerUI.NET copied to clipboard

I find a way to use mpv and opengl in Avalonia

Open holdxen opened this issue 2 years ago • 4 comments

https://github.com/Zhou-Pixel/AvaloniaWithMpv

It is my example and it still have some problems

holdxen avatar Mar 13 '23 09:03 holdxen

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

mysteryx93 avatar Mar 13 '23 15:03 mysteryx93

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

holdxen avatar Mar 30 '23 13:03 holdxen

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.

mysteryx93 avatar Mar 30 '23 18:03 mysteryx93

Someone finally did an OpenGL implementation API https://github.com/homov/LibMpv

mysteryx93 avatar May 04 '23 01:05 mysteryx93