Commit 11e5b4c7 authored by liyuanhong's avatar liyuanhong

优化了获取播放地址不对的bug

parent c5d7ae00
...@@ -178,7 +178,9 @@ class CameraArea(): ...@@ -178,7 +178,9 @@ class CameraArea():
# 获取视频播放地址 # 获取视频播放地址
#################################################### ####################################################
def doGetPlayUrl(self,textCtr): def doGetPlayUrl(self,textCtr):
res = requests.post(self.getGetPlayUrl, data=json.dumps({'devId': self.devId, 'chan': str(self.channel)})).text devId = self.devIdText.GetValue()
channel = self.channelText.GetValue()
res = requests.post(self.getGetPlayUrl, data=json.dumps({'devId': devId, 'chan': str(channel)})).text
res = json.loads(res) res = json.loads(res)
url = res["data"]["url"] url = res["data"]["url"]
textCtr.SetValue(url) textCtr.SetValue(url)
......
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