diff options
-rw-r--r-- | src/multimediaquick/Video.qml | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/multimediaquick/Video.qml b/src/multimediaquick/Video.qml index 1cee5514a..3b94c7321 100644 --- a/src/multimediaquick/Video.qml +++ b/src/multimediaquick/Video.qml @@ -71,8 +71,8 @@ import QtMultimedia focus: true Keys.onSpacePressed: video.playbackState == MediaPlayer.PlayingState ? video.pause() : video.play() - Keys.onLeftPressed: video.seek(video.position - 5000) - Keys.onRightPressed: video.seek(video.position + 5000) + Keys.onLeftPressed: video.position = video.position - 5000 + Keys.onRightPressed: video.position = video.position + 5000 } \endqml @@ -264,10 +264,6 @@ Item { \qmlproperty int Video::position This property holds the current playback position in milliseconds. - - To change this position, use the \l seek() method. - - \sa seek() */ property alias position: player.position @@ -277,7 +273,8 @@ Item { This property holds whether the playback position of the video can be changed. - If true, calling the \l seek() method will cause playback to seek to the new position. + If true, calling the \l seek() method or changing the \l position property + will cause playback to seek to the new position. */ property alias seekable: player.seekable @@ -391,12 +388,9 @@ Item { If the \l seekable property is true, seeks the current playback position to \a offset. - Seeking may be asynchronous, so the \l position property - may not be updated immediately. - \sa seekable, position */ function seek(offset) { - player.seek(offset); + player.position = offset; } } |