Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I find a way to use mpv and opengl in Avalonia #5

Open
Zhou-Pixel opened this issue Mar 13, 2023 · 4 comments
Open

I find a way to use mpv and opengl in Avalonia #5

Zhou-Pixel opened this issue Mar 13, 2023 · 4 comments

Comments

@Zhou-Pixel
Copy link

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

It is my example and it still have some problems

@mysteryx93
Copy link
Owner

mysteryx93 commented Mar 13, 2023

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

@Zhou-Pixel
Copy link
Author

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

@mysteryx93
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants