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.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/DOCS/client_api_examples/qml/mpvrenderer.cpp b/DOCS/client_api_examples/qml/mpvrenderer.cpp
index 0f6b6ba9f9..07ee360eb3 100644
--- a/DOCS/client_api_examples/qml/mpvrenderer.cpp
+++ b/DOCS/client_api_examples/qml/mpvrenderer.cpp
@@ -98,12 +98,10 @@ void MpvObject::doUpdate()
update();
}
-void MpvObject::loadfile(const QString& filename)
+void MpvObject::command(const QVariant& params)
{
- QVariantList cmd;
- cmd.append("loadfile");
- cmd.append(filename);
- mpv::qt::command_variant(mpv, cmd);
+ //mpv_command_string(mpv, s.toUtf8().data());
+ mpv::qt::command_variant(mpv, params);
}
QQuickFramebufferObject::Renderer *MpvObject::createRenderer() const