Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e48c6044
Commit
e48c6044
authored
Aug 28, 2019
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start local video recording along with camera video recording.
parent
90a7c22b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
CustomCameraControl.qml
custom-example/res/CustomCameraControl.qml
+10
-0
No files found.
custom-example/res/CustomCameraControl.qml
View file @
e48c6044
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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