VideoPlayer::paused property does not exist. Use VideoPlayer::state instead
authorMohammed Sameer <msameer@foolab.org>
Wed, 31 Jul 2013 20:21:57 +0000 (23:21 +0300)
committerMohammed Sameer <msameer@foolab.org>
Wed, 31 Jul 2013 20:21:57 +0000 (23:21 +0300)
qml/VideoPlayerPage.qml

index 5e80ffa..41d947f 100644 (file)
@@ -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.paused) {
+            if (state != VideoPlayer.StatePaused) {
                 video.pause()
             } else {
                 page.play()
                 video.pause()
             } else {
                 page.play()
@@ -131,7 +131,7 @@ Item {
             },
             CameraToolIcon {
                 id: control
             },
             CameraToolIcon {
                 id: control
-                iconId: !video.paused ? cameraTheme.videoPauseIconId : cameraTheme.videoPlayIconId
+                iconId: video.state != VideoPlayer.StatePaused ? cameraTheme.videoPauseIconId : cameraTheme.videoPlayIconId
                 onClicked: {
                     video.toggle()
                     hideTimer.restart()
                 onClicked: {
                     video.toggle()
                     hideTimer.restart()