Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mirrorSimulator
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
李远洪
mirrorSimulator
Commits
465a7ea9
Commit
465a7ea9
authored
Jan 14, 2021
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新了yaml文件配置
parent
3c893d79
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
config/config.yaml
config/config.yaml
+3
-0
ui/CameraArea.py
ui/CameraArea.py
+7
-2
ui/globalParams.py
ui/globalParams.py
+1
-1
No files found.
config/config.yaml
View file @
465a7ea9
globalCon
:
globalCon
:
getPlayUrl
:
http://10.100.11.110:9999/video/streamInfo
getPlayUrl
:
http://10.100.11.110:9999/video/streamInfo
cameraParam
:
host
:
10.100.11.125
port
:
1078
\ No newline at end of file
ui/CameraArea.py
View file @
465a7ea9
...
@@ -26,10 +26,15 @@ class CameraArea():
...
@@ -26,10 +26,15 @@ class CameraArea():
self
.
channel
=
1
self
.
channel
=
1
self
.
getGetPlayUrl
=
"http://10.100.11.110:9999/video/streamInfo"
# 获取推流播放地址的url
self
.
getGetPlayUrl
=
"http://10.100.11.110:9999/video/streamInfo"
# 获取推流播放地址的url
self
.
pushObj
=
None
# 推流对象
self
.
pushObj
=
None
# 推流对象
self
.
host
=
"10.100.11.125"
self
.
port
=
"1078"
with
open
(
"config/config.yaml"
,
'r'
,
encoding
=
"utf-8"
)
as
fi
:
with
open
(
"config/config.yaml"
,
'r'
,
encoding
=
"utf-8"
)
as
fi
:
fi_data
=
fi
.
read
()
fi_data
=
fi
.
read
()
data
=
yaml
.
load
(
fi_data
,
Loader
=
yaml
.
FullLoader
)
data
=
yaml
.
load
(
fi_data
,
Loader
=
yaml
.
FullLoader
)
self
.
getGetPlayUrl
=
data
[
"globalCon"
][
"getPlayUrl"
]
self
.
getGetPlayUrl
=
data
[
"globalCon"
][
"getPlayUrl"
]
self
.
host
=
str
(
data
[
"cameraParam"
][
"host"
])
self
.
port
=
str
(
data
[
"cameraParam"
][
"port"
])
self
.
videoPathText
=
None
# 推流路劲text
self
.
videoPathText
=
None
# 推流路劲text
self
.
pushHostText
=
None
# host 文本框
self
.
pushHostText
=
None
# host 文本框
...
@@ -92,9 +97,9 @@ class CameraArea():
...
@@ -92,9 +97,9 @@ class CameraArea():
self
.
frame
.
Bind
(
wx
.
EVT_BUTTON
,
lambda
evt
,
textCtr
=
self
.
videoPathText
:
self
.
selectVideoFile
(
evt
,
textCtr
),
self
.
frame
.
Bind
(
wx
.
EVT_BUTTON
,
lambda
evt
,
textCtr
=
self
.
videoPathText
:
self
.
selectVideoFile
(
evt
,
textCtr
),
selectPathButton
)
selectPathButton
)
wx
.
StaticText
(
paramView
,
label
=
'推流地址:'
,
pos
=
(
10
,
40
))
wx
.
StaticText
(
paramView
,
label
=
'推流地址:'
,
pos
=
(
10
,
40
))
self
.
pushHostText
=
wx
.
TextCtrl
(
paramView
,
pos
=
(
70
,
35
),
size
=
wx
.
Size
(
150
,
-
1
),
value
=
"10.100.11.125"
)
# 推流地址
self
.
pushHostText
=
wx
.
TextCtrl
(
paramView
,
pos
=
(
70
,
35
),
size
=
wx
.
Size
(
150
,
-
1
),
value
=
self
.
host
)
# 推流地址
wx
.
StaticText
(
paramView
,
label
=
'推流端口:'
,
pos
=
(
235
,
40
))
wx
.
StaticText
(
paramView
,
label
=
'推流端口:'
,
pos
=
(
235
,
40
))
self
.
pushPortText
=
wx
.
TextCtrl
(
paramView
,
pos
=
(
300
,
35
),
size
=
wx
.
Size
(
80
,
-
1
),
value
=
"1078"
)
# 推流端口
self
.
pushPortText
=
wx
.
TextCtrl
(
paramView
,
pos
=
(
300
,
35
),
size
=
wx
.
Size
(
80
,
-
1
),
value
=
self
.
port
)
# 推流端口
wx
.
StaticText
(
paramView
,
label
=
'设 备号:'
,
pos
=
(
10
,
70
))
wx
.
StaticText
(
paramView
,
label
=
'设 备号:'
,
pos
=
(
10
,
70
))
self
.
devIdText
=
wx
.
TextCtrl
(
paramView
,
pos
=
(
70
,
65
),
size
=
wx
.
Size
(
150
,
-
1
),
value
=
self
.
devId
)
# 设备号
self
.
devIdText
=
wx
.
TextCtrl
(
paramView
,
pos
=
(
70
,
65
),
size
=
wx
.
Size
(
150
,
-
1
),
value
=
self
.
devId
)
# 设备号
wx
.
StaticText
(
paramView
,
label
=
'频 道号:'
,
pos
=
(
235
,
70
))
wx
.
StaticText
(
paramView
,
label
=
'频 道号:'
,
pos
=
(
235
,
70
))
...
...
ui/globalParams.py
View file @
465a7ea9
...
@@ -4,4 +4,4 @@ camera_1 = None # 相机1
...
@@ -4,4 +4,4 @@ camera_1 = None # 相机1
camera_2
=
None
# 相机2
camera_2
=
None
# 相机2
camera_3
=
None
# 相机3
camera_3
=
None
# 相机3
isLogRedirect
=
0
# 日志是否重定向到日志文本框 0: 不重定向 (用于调试) 1:重定向 (用于给别人用)
isLogRedirect
=
1
# 日志是否重定向到日志文本框 0: 不重定向 (用于调试) 1:重定向 (用于给别人用)
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