|
@@ -286,7 +286,7 @@ class oa2RtspStartView(TemplateView):
|
|
|
|
|
|
# 请求MQTT发布消息
|
|
|
url = '{}/iot/requestPublishMessage'.format(SERVER_PREFIX_TEST) # 测试服务器
|
|
|
- requests_data = {'UID': UID, 'MSG': MSG+' 1'+channel} # 1: 开始推流,0: 停止推流; channel: 推流通道
|
|
|
+ requests_data = {'UID': UID, 'rtsp': MSG, 'enable': '1'} # 1: 开始推流,0: 停止推流; channel: 推流通道
|
|
|
r = requests.post(url, requests_data)
|
|
|
if r.status_code != 200:
|
|
|
return JsonResponse({'错误': '请求响应异常'})
|