VideoSeek.qml Example File
multimedia/video/qmlvideo/qml/qmlvideo/VideoSeek.qml
import QtQuick 2.0
Scene {
id: root
property string contentType: "video"
contentWidth: parent.width
Content {
id: content
anchors.centerIn: parent
width: parent.contentWidth
contentType: "video"
source: parent.source1
volume: parent.volume
onVideoFramePainted: root.videoFramePainted()
}
SeekControl {
anchors {
left: parent.left
right: parent.right
margins: 10
bottom: parent.bottom
}
duration: content.contentItem() ? content.contentItem().duration : 0
playPosition: content.contentItem() ? content.contentItem().position : 0
onSeekPositionChanged: content.contentItem().seek(seekPosition);
}
Component.onCompleted: root.content = content
}