Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
646b87e1
Unverified
Commit
646b87e1
authored
Aug 28, 2019
by
Gus Grubba
Committed by
GitHub
Aug 28, 2019
Browse files
Merge pull request #7732 from mavlink/localVideoRecording
Start local video recording along with camera video recording.
parents
90a7c22b
e48c6044
Changes
1
Hide whitespace changes
Inline
Side-by-side
custom-example/res/CustomCameraControl.qml
View file @
646b87e1
...
...
@@ -44,6 +44,8 @@ Item {
property
real
_labelFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
28
property
real
_editFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
30
property
real
_editFieldHeight
:
ScreenTools
.
defaultFontPixelHeight
*
2
property
var
_videoReceiver
:
QGroundControl
.
videoManager
.
videoReceiver
property
bool
_recordingLocalVideo
:
_videoReceiver
&&
_videoReceiver
.
recording
property
var
_dynamicCameras
:
activeVehicle
?
activeVehicle
.
dynamicCameras
:
null
property
bool
_isCamera
:
_dynamicCameras
?
_dynamicCameras
.
cameras
.
count
>
0
:
false
...
...
@@ -301,10 +303,18 @@ Item {
if
(
_cameraVideoMode
)
{
if
(
_camera
.
videoStatus
===
QGCCameraControl
.
VIDEO_CAPTURE_STATUS_RUNNING
)
{
_camera
.
stopVideo
()
//-- Local video as well
if
(
_recordingVideo
)
{
_videoReceiver
.
stopRecording
()
}
}
else
{
if
(
!
_fullSD
)
{
_camera
.
startVideo
()
}
//-- Local video as well
if
(
_videoReceiver
)
{
_videoReceiver
.
startRecording
()
}
}
}
else
{
if
(
_camera
.
photoStatus
===
QGCCameraControl
.
PHOTO_CAPTURE_INTERVAL_IDLE
||
_camera
.
photoStatus
===
QGCCameraControl
.
PHOTO_CAPTURE_INTERVAL_IN_PROGRESS
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment