|
@@ -190,9 +190,12 @@ class oa2RtspStartView(TemplateView):
|
|
|
ur_qs = UidRtspModel.objects.filter(user_id=userID, id=id).values('uid', 'nick', 'rtsp_url', 'password')
|
|
|
UID = ur_qs[0]['uid']
|
|
|
PWD = ur_qs[0]['password']
|
|
|
- MSG = ur_qs[0]['rtsp_url']
|
|
|
+ MSG = 'rtsp://www.zositech.org:443/{stream_name}'.format(stream_name=ur_qs[0]['rtsp_url'])
|
|
|
# po = Pool(10)
|
|
|
# po.apply_async(self.runSendRtspMsg, (UID, PWD, MSG))
|
|
|
+ print(UID)
|
|
|
+ print(PWD)
|
|
|
+ print(MSG)
|
|
|
self.runSendRtspMsg(UID, PWD, MSG)
|
|
|
return JsonResponse({'msg': 'ok'})
|
|
|
else:
|