import QtQuick 1.1
import com.nokia.meego 1.1
-import QtMultimediaKit 1.1
import CameraPlus 1.0
+import QtCamera 1.0
+import QtCameraExtras 1.0
// TODO: error reporting
property alias source: video.source
function play() {
- video.play()
+ return video.play()
}
MouseArea {
onTriggered: toolBar.show = false
}
- Video {
+ VideoPlayer {
id: video
anchors.fill: parent
+ cameraConfig: cam.cameraConfig
function toggle() {
if (!video.paused) {
}
}
- onStopped: page.finished()
+ onStateChanged: {
+ if (state == VideoPlayer.StateStopped) {
+ page.finished()
+ }
+ }
}
Connections {