mpv.net icon indicating copy to clipboard operation
mpv.net copied to clipboard

MAUI Support

Open michalss opened this issue 3 years ago • 10 comments
trafficstars

Hi is there ant way this could work on MAUI, cross all platform's please?

michalss avatar Sep 25 '22 08:09 michalss

I use Linux as main OS since a couple of weeks. Next is a small web scraping project, so not mpv related. No plans beyond that, in general I focus on learning, which includes cross-platform GUI topics.

stax76 avatar Oct 01 '22 08:10 stax76

Some clarification, Linux is not supported by MAUI and even if it had Linux support, it wouldn't be suitable for a mpv frontend on Linux because a mpv frontend must directly interface with an X11 window, so for the main windows even Avalonia is not suitable. It's complicated, C# might not be the best choice for a Linux frontend because on Linux Rust is already much more popular. GTK4 would be suitable, but there aren't C# bindings for GTK4 and .NET 6 I believe, for Rust bindings exist and are well maintained. I will certainly continue to investigate the idea.

stax76 avatar Oct 14 '22 09:10 stax76

Alternative to MAUI would be: https://avaloniaui.net

theChaosCoder avatar Oct 14 '22 11:10 theChaosCoder

Alternative to MAUI would be: https://avaloniaui.net

What this has to do with this project? Im looking for cross platform player where i can import subtitles, and where player supports various formats.

michalss avatar Oct 14 '22 11:10 michalss

Im looking for cross platform player where i can import subtitles, and where player supports various formats.

VLC?

What this has to do with this project?

Do you mean .net MAUI or KDE MAUI?

theChaosCoder avatar Oct 14 '22 13:10 theChaosCoder

MAUI yes. I do not care that much about KDE, I never mention linux anywhere.. :) And no VLC has not WinUI implementation yet...

michalss avatar Oct 14 '22 13:10 michalss

There seem to be a project working on C# GTK bindings:

https://github.com/gircore/gir.core

The main window needs to embed an X11 video window, info here:

https://mpv.io/manual/master/#options-wid

It needs a modern light/dark context menu, and if possible embed a command palette child window, all other windows can be done with Avalonia.

stax76 avatar Oct 14 '22 14:10 stax76

There seem to be a project working on C# GTK bindings:

https://github.com/gircore/gir.core

The main window needs to embed an X11 video window, info here:

https://mpv.io/manual/master/#options-wid

It needs a modern light/dark context menu, and if possible embed a command palette child window, all other windows can be done with Avalonia.

see i would include this project to my own project im working just now(MAUI). Im working on similar application like kodi. Pretty much done with all features, so all its left is some good videoplayer

michalss avatar Oct 14 '22 15:10 michalss

If you really consider a Rust rewrite, take a look at how Gyroflow does it with QT.

User-3090 avatar Dec 22 '22 15:12 User-3090

Rust and QML, thanks for the tip.

stax76 avatar Dec 22 '22 16:12 stax76