diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/video/qmlvideo/qml/qmlvideo/VideoDummy.qml | 1 | ||||
-rw-r--r-- | examples/video/qmlvideo/qml/qmlvideo/VideoItem.qml | 1 | ||||
-rw-r--r-- | examples/video/qmlvideo/qml/qmlvideo/VideoSeek.qml | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/examples/video/qmlvideo/qml/qmlvideo/VideoDummy.qml b/examples/video/qmlvideo/qml/qmlvideo/VideoDummy.qml index f46835f25..1d7205902 100644 --- a/examples/video/qmlvideo/qml/qmlvideo/VideoDummy.qml +++ b/examples/video/qmlvideo/qml/qmlvideo/VideoDummy.qml @@ -71,4 +71,5 @@ Rectangle { function start() { } function stop() { } + function seek() { } } diff --git a/examples/video/qmlvideo/qml/qmlvideo/VideoItem.qml b/examples/video/qmlvideo/qml/qmlvideo/VideoItem.qml index a086b3f35..f06ab981d 100644 --- a/examples/video/qmlvideo/qml/qmlvideo/VideoItem.qml +++ b/examples/video/qmlvideo/qml/qmlvideo/VideoItem.qml @@ -73,4 +73,5 @@ VideoOutput { function start() { mediaPlayer.play() } function stop() { mediaPlayer.stop() } + function seek(position) { mediaPlayer.seek(position); } } diff --git a/examples/video/qmlvideo/qml/qmlvideo/VideoSeek.qml b/examples/video/qmlvideo/qml/qmlvideo/VideoSeek.qml index 8b86db523..e8cb3edbe 100644 --- a/examples/video/qmlvideo/qml/qmlvideo/VideoSeek.qml +++ b/examples/video/qmlvideo/qml/qmlvideo/VideoSeek.qml @@ -65,7 +65,7 @@ Scene { } duration: content.contentItem() ? content.contentItem().duration : 0 playPosition: content.contentItem() ? content.contentItem().position : 0 - onSeekPositionChanged: { content.contentItem().position = seekPosition } + onSeekPositionChanged: { content.contentItem().seek(seekPosition); } } Component.onCompleted: root.content = content |