|
@@ -295,12 +295,10 @@ class oa2RtspStartView(TemplateView):
|
|
|
logger.info('请求MQTT发布消息参数:{},result_code: {}'.format(requests_data, res['result_code']))
|
|
|
if res['result_code'] == 0:
|
|
|
logger.info('请求MQTT下发指令成功')
|
|
|
- elif res['result_code'] == 10043:
|
|
|
+ else: # 使用pushtool通知设备推流
|
|
|
command = "./pushtool {UID} {PWD} {MSG} 1 {channel}".format(UID=UID, PWD=PWD, MSG=MSG, channel=channel)
|
|
|
logger.info('------------推流指令: {}---------------'.format(command))
|
|
|
self.runSendRtspMsg(logger, region, command)
|
|
|
- else:
|
|
|
- return JsonResponse({'错误': '请求MQTT发布消息异常'})
|
|
|
|
|
|
# 拉流地址
|
|
|
rtsp_uri = '{}://{}:443/{}'.format(RTSP_PREFIX, RESP_SERVER_DOMAIN, stream_name)
|