Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Input video data from C++ to QML Video Player
beemaster last edited by
I am looking for a best way to implement a video player application in QML. Almost all QML examples are reading files from filesystem or web:
I want to specify my own source for MediaPlayer - a C++ QObject derived class, that has an interface similar to QIODevice. That would be perfect for my needs. I need to preload video in parts and also to cache it for later use.
Is there an easy solution for my needs? (I am using Qt 5.2)
How about passing the data from C++ to QML using the QmlEngine rootcontext(). You can look at "here":http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html
I have not tried with MediaPlayer class. C++ and QML interaction is very much feasible.
laureon last edited by
Is this what you looking for?