Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kde/mpvqt
MpvQt is a libmpv wrapper for QtQuick2 and QML
https://github.com/kde/mpvqt
Last synced: 4 days ago
JSON representation
MpvQt is a libmpv wrapper for QtQuick2 and QML
- Host: GitHub
- URL: https://github.com/kde/mpvqt
- Owner: KDE
- Created: 2023-08-25T19:10:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-16T22:30:54.000Z (29 days ago)
- Last Synced: 2024-10-19T16:11:06.049Z (26 days ago)
- Language: C++
- Homepage: https://invent.kde.org/libraries/mpvqt
- Size: 130 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/BSD-3-Clause.txt
Awesome Lists containing this project
README
MpvQt is a [libmpv](https://github.com/mpv-player/mpv/) wrapper for Qt Quick 2/Qml.
## How to use
- Create a class extending `MpvAbstractItem` (check the [mpvitem.h](examples/video-player/mpvitem.h)/[mpvitem.cpp](examples/video-player/mpvitem.cpp) files in the example)
- Register the class `qmlRegisterType("com.example.mpv", 1, 0, "NameUsedInQml");`
- In your qml file import mpv `import com.example.mpv 1.0`
- Then create an instance `NameUsedInQml {}` (check the [Main.qml](examples/video-player/Main.qml) file in the example)## Config file
MpvQt loads a config file located at `/mpvqt/mpvqt.conf`,
the file has to be manually created and is a regular mpv config file.
The settings apply to all applications using MpvQt,
applications can override the properties set in MpvQt's config file.### Applications using MpvQt
- [Haruna](https://invent.kde.org/multimedia/haruna)
- [PlasmaTube](https://invent.kde.org/multimedia/plasmatube)
- [Tokodon](https://invent.kde.org/network/tokodon)