Commit 4549a804 authored by liyuanhong's avatar liyuanhong

小优化

parent e8bc5943
......@@ -104,18 +104,6 @@ class Protocal_1078:
msg = msg + self.int2hexStringByBytes(self.lastTime,2)
msg = msg + self.int2hexStringByBytes(int(len(data) / 2),2)
msg = msg + data
if len(msg) % 2 != 0:
print("1-" + str(len(self.frameHeader1078)))
print("2--" + str(len(self.int2hexStringByBytes(self.V + self.P + self.X + self.CC))))
print("3---" + str(len(self.int2hexStringByBytes(self.M + self.PT))))
print("4----" + str(len(self.int2hexStringByBytes(self.sn,2))))
print("5-----" + str(len(self.sim)))
print("6------" + str(len(self.int2hexStringByBytes(self.logicC))))
print("7-------" + str(len(self.int2hexStringByBytes(self.dataType + self.pkgTag))))
print("8--------" + str(len(self.int2hexStringByBytes(self.time,8))))
print("9---------" + str(len(self.int2hexStringByBytes(self.lastKeyTime,2))))
print(self.lastKeyTime)
return msg
#####################################################
......
......@@ -156,7 +156,7 @@ class StreamH264Flv():
self.pushStatusText.SetValue("已连网")
timeCur = self.getCurTime()
self.multiPushStatus = self.multiPushStatus + 1
self.timeStampSeek = timeStamp + 5000
self.timeStampSeek = timeStamp + 1000
self.logTextCtr.WriteText(timeCur + "视频推流完,自动结束推流!\n")
# self.client.close()
......
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