mirror of https://github.com/mpv-player/mpv
b103a8e113
Could lead to failure because it's essentially a race condition. |
||
---|---|---|
.. | ||
cocoa | ||
cocoa-openglcb | ||
qml | ||
qml_direct | ||
qt | ||
sdl | ||
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.
qt
Shows how to embed the mpv video window in Qt (using normal desktop widgets).
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.
sdl
Show how to embed the mpv OpenGL renderer in SDL.
simple
Very primitive terminal-only example. Shows some most basic API usage.