Commit 465a7ea9 authored by liyuanhong's avatar liyuanhong

更新了yaml文件配置

parent 3c893d79
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
...@@ -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))
......
...@@ -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:重定向 (用于给别人用)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment