|
@@ -27,6 +27,8 @@ from object.RedisObject import RedisObject
|
|
|
from azoauth.config import *
|
|
|
|
|
|
SERVER_PREFIX = 'http://www.dvema.com'
|
|
|
+# PORT_PREFIX = '8554'
|
|
|
+PORT_PREFIX = '443'
|
|
|
|
|
|
|
|
|
class authView(TemplateView):
|
|
@@ -211,8 +213,8 @@ class oa2RtspStartView(TemplateView):
|
|
|
# ur_qs = UidRtspModel.objects.filter(usermodel__userID=userID,uid=)
|
|
|
UID = ur_qs[0]['uid']
|
|
|
PWD = ur_qs[0]['password']
|
|
|
- MSG = 'rtsp://{RESP_SERVER_DOMAIN}:8554/{stream_name}'. \
|
|
|
- format(RESP_SERVER_DOMAIN=RESP_SERVER_DOMAIN, stream_name=ur_qs[0]['rtsp_url'])
|
|
|
+ MSG = 'rtsp://{RESP_SERVER_DOMAIN}:{PORT_PREFIX}/{stream_name}'. \
|
|
|
+ format(RESP_SERVER_DOMAIN=RESP_SERVER_DOMAIN, stream_name=ur_qs[0]['rtsp_url'],PORT_PREFIX=PORT_PREFIX)
|
|
|
# po = Pool(10)
|
|
|
# po.apply_async(self.runSendRtspMsg, (UID, PWD, MSG))
|
|
|
print(UID)
|