chanjunkai 5 жил өмнө
parent
commit
07581b39bb
1 өөрчлөгдсөн 4 нэмэгдсэн , 4 устгасан
  1. 4 4
      controller/index.py

+ 4 - 4
controller/index.py

@@ -201,8 +201,8 @@ class oa2RtspStartView(TemplateView):
         if redis_data and st == 0:
             print('select by redis data')
             # time.sleep(3)
-            # res_json = eval(redis_data)
-            # return JsonResponse(res_json, safe=False)
+            res_json = eval(redis_data)
+            return JsonResponse(res_json, safe=False)
         if access_token == '6ovF9wiXm7su9YXO67PSOkrEPb2LIOf1':
             print('pass yes')
             user_qs = UserModel.objects.filter(userID='154483823297313800138000')
@@ -254,7 +254,7 @@ class oa2RtspStartView(TemplateView):
                 # 'audioCodecs': ['ACC'],
                 'audioCodecs': ['G711'],
                 'protocols': ['RTSP'],
-                'authorizationTypes': ['BASIC'],
+                'authorizationTypes': ['NONE'],
                 'uri': rtsp_uri,
                 'msg':send_flag
             }
@@ -369,7 +369,7 @@ class oa2DiscoveryDevice(TemplateView):
                         'videoCodecs': ['H264'],
                         'audioCodecs': ['ACC'],
                         'protocols': ['RTSP'],
-                        'authorizationTypes': ['BASIC'],
+                        'authorizationTypes': ['NONE'],
                         'uri': rtsp_uri
                     }
                     res_json.append(ur_data)