/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ****************************************************************************/importQtQuick2.5importQtMultimedia5.5importQGroundControl1.0Rectangle{anchors.fill:parentcolor:Qt.rgba(0,0,0,0.75)Camera{id:cameradeviceId:QGroundControl.videoManager.videoSourceIDcaptureMode:Camera.CaptureViewfinder}VideoOutput{source:cameraanchors.fill:parentfillMode:VideoOutput.PreserveAspectCropvisible:!QGroundControl.videoManager.isGStreamer}onVisibleChanged:{if(visible)camera.start()elsecamera.stop()}}