mysteryx93 / LibMpv-OpenGL

Cross-platform MPV video player for .NET and Avalonia with OpenGL implementation
MIT License
30 stars 4 forks source link

LibMpv for .NET (with OpenGL)

Cross-platform MPV video player for .NET and Avalonia with OpenGL implementation.

Supported renderers: Software, OpenGL, Native (Desktop & Android).

LibMpv

MPV API implemented in 3 layers:

LibMpv targets netstandard2.0 and can be used with any UI.

LibMpv.Avalonia

Avalonia implementation. Place MpvVideoView in your view.

You can access the MpvContext in your ViewModel by binding it like this.

<mpv:MpvVideoView MpvContext="{Binding Mpv}" />

MpvContext provides access to all MPV features.

Default renderer is OpenGL for Linux and MacOS, Native for Windows, and a different Native implementation for Android.

Sample.LibMpv.Avalonia

Sample project tested on Windows, Linux and Android.

Android MPV binaries are taken from the project https://github.com/mpv-android/mpv-android

Contributions wanted!

As I will not be using these features myself for a while, someone else will need to complete the work or it may sit in the current state for a long time.

TODO:

License

This project is under MIT license.

By Etienne Charland (mysteryx93) and Vadim Beloborodov (homov).