projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
64114bd
)
VideoPlayer::paused property does not exist. Use VideoPlayer::state instead
author
Mohammed Sameer
<msameer@foolab.org>
Wed, 31 Jul 2013 20:21:57 +0000
(23:21 +0300)
committer
Mohammed Sameer
<msameer@foolab.org>
Wed, 31 Jul 2013 20:21:57 +0000
(23:21 +0300)
qml/VideoPlayerPage.qml
patch
|
blob
|
history
diff --git
a/qml/VideoPlayerPage.qml
b/qml/VideoPlayerPage.qml
index
5e80ffa
..
41d947f
100644
(file)
--- a/
qml/VideoPlayerPage.qml
+++ b/
qml/VideoPlayerPage.qml
@@
-63,7
+63,7
@@
Item {
onError: showError(qsTr("Error playing video. Please try again or restart the application"))
function toggle() {
onError: showError(qsTr("Error playing video. Please try again or restart the application"))
function toggle() {
- if (
!video.p
aused) {
+ if (
state != VideoPlayer.StateP
aused) {
video.pause()
} else {
page.play()
video.pause()
} else {
page.play()
@@
-131,7
+131,7
@@
Item {
},
CameraToolIcon {
id: control
},
CameraToolIcon {
id: control
- iconId:
!video.p
aused ? cameraTheme.videoPauseIconId : cameraTheme.videoPlayIconId
+ iconId:
video.state != VideoPlayer.StateP
aused ? cameraTheme.videoPauseIconId : cameraTheme.videoPlayIconId
onClicked: {
video.toggle()
hideTimer.restart()
onClicked: {
video.toggle()
hideTimer.restart()