Files
restitux 7944e4e21b Initial prototype
Basic UI outline with keyboard control. Python database
object is exposed to QML and data can be queried from its methods.
This should provide a generic structure that different UI themes
can be built around.
2022-08-15 17:50:09 +00:00

28 lines
1.1 KiB
ReStructuredText

This is an example of embededing MPV into QML using python-mpv and PyQt5.
Make sure to install all the needed dependencies (listed in the pyproject.toml file).
Also make sure to clone the submodules to grab the Video files that are being used.
This example isn't 100% (it still segfaults sometimes). Feel free to submit a PR
if you have any additions or corrections. Thanks and enjoy!
Code References
===============
This was built from these three examples.
- https://gist.github.com/jaseg/657e8ecca3267c0d82ec85d40f423caa
- https://gist.github.com/cosven/b313de2acce1b7e15afda263779c0afc
- https://github.com/mpv-player/mpv-examples/tree/master/libmpv/qml
Video Licences
==============
Videos are from: https://github.com/Matroska-Org/matroska-test-files
Both Big Buck Bunny and Elephant Dreams and licensed under the Creative Common License Attribution license, also known as CC-BY.
The recommended license text for Big Buck Bunny is (c) copyright 2008, Blender Foundation / www.bigbuckbunny.org.
The recommended license text for Elephant Dreams is (c) copyright 2006, Blender Foundation / Netherlands Media Art Institute / www.elephantsdream.org.