#ifndef MPVRENDERER_H_ #define MPVRENDERER_H_ #include #include #include #include "../common/qthelper.hpp" class MpvRenderer; class MpvObject : public QQuickFramebufferObject { Q_OBJECT mpv_handle *mpv; mpv_render_context *mpv_gl; friend class MpvRenderer; public: static void on_update(void *ctx); MpvObject(QQuickItem * parent = 0); virtual ~MpvObject(); virtual Renderer *createRenderer() const; public slots: void command(const QVariant& params); void setProperty(const QString& name, const QVariant& value); signals: void onUpdate(); private slots: void doUpdate(); }; #endif