playcode bug
This commit is contained in:
parent
8842c6f504
commit
7766afa1b6
|
|
@ -131,8 +131,8 @@ class PlayCodeAPIView(APIView):
|
||||||
"""获取播放签名
|
"""获取播放签名
|
||||||
"""
|
"""
|
||||||
from .vodclient import appId
|
from .vodclient import appId
|
||||||
# try:
|
try:
|
||||||
playcode = getPlayCode(fileId)
|
playcode = getPlayCode(fileId)
|
||||||
# except:
|
except:
|
||||||
# raise ParseError('获取签名失败')
|
raise ParseError('获取签名失败')
|
||||||
return Response({'psign':playcode, 'appId': appId})
|
return Response({'psign':playcode, 'appId': appId})
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,6 @@ def getPlayCode(fileId:str):
|
||||||
"currentTimeStamp": currentTimeStamp,
|
"currentTimeStamp": currentTimeStamp,
|
||||||
"pcfg": "basicDrmPreset",
|
"pcfg": "basicDrmPreset",
|
||||||
}
|
}
|
||||||
print(Original)
|
|
||||||
return jwt.encode(Original, referKey, algorithm='HS256')
|
return jwt.encode(Original, referKey, algorithm='HS256')
|
||||||
|
|
||||||
def startSeVideo(fileId:str):
|
def startSeVideo(fileId:str):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue