Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
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?