mirror of https://github.com/mpv-player/mpv
c88b535c46
The Qt example already does this. I hoped this was restricted to QApplication only, but apparently Qt repeated this mistake with QGuiApplication (QGuiApplication was specifically added for QtQuick at a much later point, even though QApplication inherits from it). |
||
---|---|---|
.. | ||
cocoa | ||
qml | ||
qml_direct | ||
qt | ||
simple | ||
Copyright | ||
README.md |
README.md
Client API examples
All these examples use the mpv client API through libmpv.
cocoa
Shows how to embed the mpv video window in Objective-C/Cocoa.
qml
Shows how to use mpv's OpenGL video renderer in QtQuick2 with QML.
qml_direct
Alternative example, which typically avoids a FBO indirection. Might be slightly faster, but is less flexible and harder to use.
qt
Shows how to embed the mpv video window in Qt (using normal desktop widgets).
simple
Very primitive terminal-only example. Shows some most basic API usage.