Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gamera_videos_no_ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liusq
gamera_videos_no_ui
Commits
d1fa0a6d
Commit
d1fa0a6d
authored
Aug 23, 2024
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超时去掉图片
parent
e5fe3f20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
CameraHandle.cpp
+18
-2
No files found.
CameraHandle.cpp
View file @
d1fa0a6d
...
...
@@ -252,7 +252,7 @@ void CameraHandle::cameraParameterUpdate(vides_data::responseConfig &cloudConfig
forMat
=
true
;
}
if
(
forMat
){
deviceReboot
();
deviceReboot
();
}
if
(
devConfig
.
camera
.
updateAt
!=
cloudConfig
.
camera
.
updateAt
){
if
(
devConfig
.
camera
.
username
!=
cloudConfig
.
camera
.
username
||
...
...
@@ -364,7 +364,7 @@ void CameraHandle::sdkDownloadFileByTime(XSDK_HANDLE hDevice,int id,
return
;
}
}
int
CameraHandle
::
callbackFunction
(
XSDK_HANDLE
hObject
,
QString
&
szString
)
{
if
(
!
semaphore
.
tryAcquire
())
{
...
...
@@ -986,6 +986,22 @@ void CameraHandle::sdkEncodeCfg(const char* pCfg){
qInfo
()
<<
"sdkEncodeCfg 配置编码设置->修改失败"
<<
res
;
}
}
int
CameraHandle
::
updateSdkDevStatus
(
bool
status
){
char
szOutBuffer
[
40960
]
=
{
0
};
int
nInOutSize
=
sizeof
(
szOutBuffer
);
int
res
=
XSDK_DevGetSysConfigSyn
(
hDevice
,
JK_NetWork_SPVMN
,
szOutBuffer
,
&
nInOutSize
,
4000
,
EXCMD_CONFIG_GET
);
if
(
res
<
0
){
qInfo
()
<<
sSn
<<
"GB28181可远程开关"
<<
res
;
return
0
;
}
XSDK_CFG
::
NetWork_SPVMN
config
;
config
.
Parse
(
szOutBuffer
);
config
.
bCsEnable
.
SetValue
(
status
);
const
char
*
pCfg
=
config
.
ToString
();
sdkDevSpvMn
(
pCfg
);
return
res
;
}
void
CameraHandle
::
updateSdkDevSpvMn
(
vides_data
::
responseGb28181
*
gb28181
){
char
szOutBuffer
[
40960
]
=
{
0
};
int
nInOutSize
=
sizeof
(
szOutBuffer
);
...
...
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