summaryrefslogtreecommitdiffstats
path: root/DOCS/client_api_examples/qml/mpvrenderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DOCS/client_api_examples/qml/mpvrenderer.cpp')
-rw-r--r--DOCS/client_api_examples/qml/mpvrenderer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/DOCS/client_api_examples/qml/mpvrenderer.cpp b/DOCS/client_api_examples/qml/mpvrenderer.cpp
index 07ee360eb3..f24ae42ed3 100644
--- a/DOCS/client_api_examples/qml/mpvrenderer.cpp
+++ b/DOCS/client_api_examples/qml/mpvrenderer.cpp
@@ -100,10 +100,14 @@ void MpvObject::doUpdate()
void MpvObject::command(const QVariant& params)
{
- //mpv_command_string(mpv, s.toUtf8().data());
mpv::qt::command_variant(mpv, params);
}
+void MpvObject::setProperty(const QString& name, const QVariant& value)
+{
+ mpv::qt::set_property_variant(mpv, name, value);
+}
+
QQuickFramebufferObject::Renderer *MpvObject::createRenderer() const
{
window()->setPersistentOpenGLContext(true);