Awesome
MPV-SMTC
Integrate MPV with Windows' System Media Transport Controls (the control buttons near the volume indicator thingy)
Installing the binaries
- Download a release archive from the Releases page
- Inside your MPV scripts directory, create another directory (for example "SMTC")
- Unpack the archive into this folder (so that the main.lua file is inside the folder, for example "SMTC/main.lua")
- Use MPV as usual, you should start seeing messages from both the lua script and the executable when you run MPV from the command line
TODO
- Code cleanup and adding comments
-
For seekable files, add Fast Forward / Rewind buttonsAccording to Microsoft's github, not possible on desktop verisons of Windows -
For seekable files, add timeline to the SMTCAccording to Microsoft's github, not possible on desktop verisons of Windows - Better metadata handling: most notably, thumbnails
Contributing
Prerequisites
- Visual Studio Community 2019
- .NET Desktop development workflow installed
- Universal Windows Platform development workflow installed
- .NET 5.0 Runtime installed
- Windows 10 2004+
Building
After cloning the repo, you can build MPV-SMTC using the F6 key in Visual Studio
The binaries for the releases are generated with the Publish tool from VS using the StaticReleaseBinary profile.
The release binaries are enormous in size because they are static standalone binaries and include the entire .NET 5 runtime in them.
Built With
- MPV - The media player I use and love
- Windows Runtime - The actual API used for SMTC
- Json.NET - Used for JSON Parsing
- Serilog - Used for logging
- Command Line Parser - Used for parsing arguments
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Gregory Khvatsky - Initial work - x0wllaar
See also the list of contributors who participated in this project.
License
This project is licensed under the GNU GPL 3 License - see the LICENSE.md file for details
Acknowledgments
- haggen for the Lua random string generator