mirror of https://github.com/mpv-player/mpv
This one avoids use of a FBO. It's less flexible, because it uses works around the whole QML rendering API. It seems to be the only way to get OpenGL rendering without any indirections, though. Parts of this example were insipired by Qt's "Squircle" example. Also add a README file with a short description of each example, to reduce the initial confusing. |
||
---|---|---|
.. | ||
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.