|
@@ -306,6 +306,8 @@ class oa2RtspStartView(TemplateView):
|
|
|
# stream_name = threading.Thread(target=self.runSendStop,args=(UID, PWD, MSG))
|
|
|
# stream_name.start()
|
|
|
#----------/新增关闭流的线程
|
|
|
+ stop_time = int(time.time()) + 1*60
|
|
|
+ expirationTime = time.strftime('%Y-%m-%dT%H:%MZ',time.localtime(stop_time))
|
|
|
res_json = {
|
|
|
'endpointId': id,
|
|
|
'manufacturerName': 'zosi smart',
|
|
@@ -313,6 +315,8 @@ class oa2RtspStartView(TemplateView):
|
|
|
'modelName': 'P1425-LE',
|
|
|
'friendlyName': nick,
|
|
|
'description': 'Camera connected via zosi smart',
|
|
|
+ "expirationTime": expirationTime,
|
|
|
+ "idleTimeoutSeconds": 5,
|
|
|
#'resolutions': [{'width': 1280, 'height': 720}],
|
|
|
'resolutions': [{'width': 640, 'height': 360}],
|
|
|
'videoCodecs': ['H264'],
|