Browse Source

PhotoVideoControl.qml: check if camera captures video before telling it to do so

This allows recording video locally in QGC when the camera doesn't advertise
it is able to record the video by itself.
QGC4.4
Willian Galvani 3 years ago committed by Patrick José Pereira
parent
commit
732c9953b2
  1. 2
      src/FlightMap/Widgets/PhotoVideoControl.qml

2
src/FlightMap/Widgets/PhotoVideoControl.qml

@ -101,7 +101,7 @@ Rectangle { @@ -101,7 +101,7 @@ Rectangle {
function toggleShooting() {
console.log("toggleShooting", _anyVideoStreamAvailable)
if (_mavlinkCamera) {
if (_mavlinkCamera && _mavlinkCamera.capturesVideo) {
if(_mavlinkCameraInVideoMode) {
_mavlinkCamera.toggleVideo()
} else {

Loading…
Cancel
Save