diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimedia/video/qmlvideo/qml/qmlvideo/CameraItem.qml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/examples/multimedia/video/qmlvideo/qml/qmlvideo/CameraItem.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/CameraItem.qml index 018453c22..4bbe2f978 100644 --- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/CameraItem.qml +++ b/examples/multimedia/video/qmlvideo/qml/qmlvideo/CameraItem.qml @@ -61,17 +61,21 @@ VideoOutput { onHeightChanged: root.sizeChanged() - Camera { - id: camera + CaptureSession { + camera: NCamera { + id: camera - onError: { - if (Camera.NoError != error) { - console.log("[qmlvideo] CameraItem.onError error " + error + " errorString " + errorString) - root.fatalError() - } +// onError: { +// if (Camera.NoError != error) { +// console.log("[qmlvideo] CameraItem.onError error " + error + " errorString " + errorString) +// root.fatalError() +// } +// } } + videoOutput: root } + function start() { camera.start() } function stop() { camera.stop() } } |