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:
MediaPlayer {
id: mediaplayer
source: "groovy_video.mp4"
}
VideoOutput {
anchors: parent.fill
source: mediaplayer
}
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)