YAMP
Yet Another Media Player
In general, YAMP can play video and audio from local files or remote links, even from Youtube, Vimeo and other web sites.
You can use its code as starting point and as reference to create more complex and advanced Media Players using Avalonia UI Framework and Videolan LibVlcSharp.
Why YAMP?
Unlike the WPF version of LibVLCSharp, the Avalonia version is missing several things.
-
First of all, it doesn't seem to be possible to use the LibVLC MediaPlayer in a control, so MediaPlayer has to be placed in a window.
-
Also it doesn't seem to be possible to add elements in a layer on top of MediaPlayer.
YAMP tries to live together with those drawbacks and still generate an acceptable result.
There is still a lot of work to do to have a stable result, but this is certainly a good starting point.
Some "goodies" have been added, such as the use of YT-DLP to use videos from Youtube and other sites, generating links playable by YAMP.
Your contribution is certainly welcome, in any form.
Quick Build Guide
-
First of all get the solution, in the way you prefere (download the zip, git clone, ...)
-
FFMPeg static builds are needed (x32 & x64).
- You can get them from here or from any other website you know. Choose Windows, 4.3.1 or greater, GPL versions for x32 and x64, download and extract them in the right subfolder (iffx64 and iffx32) of the /bins solution folder (I said /bins, not /bin).
-
YT-DLP latest release builds are needed (x32 and x64).
- You can get them from here. Extract the right version (x32 & x64) in the right subfolder (iffx32 and iffx64) of the /bins solution folder (I said /bins, not /bin).
-
Open the YAMP solution in Visual Studio 2019.
-
In /bins folder, iffx32 and iffx64 subfolders, select all the executable files you should have there (ffmpeg, ffprobe, ffplay and yt-dlp) and, for each executable, in its "Copy in output folder" property choose "Copy always".
-
Build the solution.
Releases
To test YAMP right away, you can download the setup here.