Cross-platform MPV video player for .NET and Avalonia with OpenGL implementation.
Supported renderers: Software, OpenGL, Native (Desktop & Android).
MPV API implemented in 3 layers:
LibMpv targets netstandard2.0
and can be used with any UI.
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 project tested on Windows, Linux and Android.
Android MPV binaries are taken from the project https://github.com/mpv-android/mpv-android
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:
This project is under MIT license.
By Etienne Charland (mysteryx93) and Vadim Beloborodov (homov).