Input video data from C++ to QML Video Player
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.
Is this what you looking for?