This commit is contained in:
parent
9f0078c465
commit
d5be542712
@ -294,8 +294,11 @@ class SeafileRunner(StreamProvider):
|
|||||||
else:
|
else:
|
||||||
stream_data["title"] = json_data.get("filePath")
|
stream_data["title"] = json_data.get("filePath")
|
||||||
stream_data["upstream"] = json_data.get("rawPath")
|
stream_data["upstream"] = json_data.get("rawPath")
|
||||||
if json_data.get("filePath").lower().endswith(".mp4"):
|
ftype = json_data.get("filePath").lower()
|
||||||
|
if ftype.endswith(".mp4"):
|
||||||
stream_data["proxy_ctype"] = "video/mp4"
|
stream_data["proxy_ctype"] = "video/mp4"
|
||||||
|
elif ftype.endswith(".webm"):
|
||||||
|
stream_data["proxy_ctype"] = "video/webm"
|
||||||
return StreamData(**stream_data)
|
return StreamData(**stream_data)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user