Browse Source

VideoPageWidget: Enable camera control if using gstreamer

Since gstreamer is enable, we can record and do mostly everything

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 5 years ago
parent
commit
2c773fccff
  1. 8
      src/FlightMap/Widgets/VideoPageWidget.qml

8
src/FlightMap/Widgets/VideoPageWidget.qml

@ -99,12 +99,12 @@ Item { @@ -99,12 +99,12 @@ Item {
//-- Video Fit
QGCLabel {
text: qsTr("Video Screen Fit")
visible: !_camera || !_camera.autoStream
visible: QGroundControl.videoManager.isGStreamer
font.pointSize: ScreenTools.smallFontPointSize
}
FactComboBox {
fact: QGroundControl.settingsManager.videoSettings.videoFit
visible: !_camera || !_camera.autoStream
visible: QGroundControl.videoManager.isGStreamer
indexModel: false
Layout.alignment: Qt.AlignHCenter
}
@ -112,7 +112,7 @@ Item { @@ -112,7 +112,7 @@ Item {
QGCLabel {
text: _recordingVideo ? qsTr("Stop Recording") : qsTr("Record Stream")
font.pointSize: ScreenTools.smallFontPointSize
visible: (!_camera || !_camera.autoStream) && QGroundControl.settingsManager.videoSettings.showRecControl.rawValue
visible: QGroundControl.videoManager.isGStreamer
}
// Button to start/stop video recording
Item {
@ -120,7 +120,7 @@ Item { @@ -120,7 +120,7 @@ Item {
height: ScreenTools.defaultFontPixelHeight * 2
width: height
Layout.alignment: Qt.AlignHCenter
visible: (!_camera || !_camera.autoStream) && QGroundControl.settingsManager.videoSettings.showRecControl.rawValue
visible: QGroundControl.videoManager.isGStreamer
Rectangle {
id: recordBtnBackground
anchors.top: parent.top

Loading…
Cancel
Save