forked from tr4ck3ur/jm2l
Fix video on home page
This commit is contained in:
+3
-3
@@ -175,9 +175,9 @@ def JSON_TimeLine_Request(request):
|
||||
if ev.event_type:
|
||||
CurMedia = ev.video.first() or ""
|
||||
if CurMedia:
|
||||
Container = """<video controls="controls" preload="metadata">"""
|
||||
Container += "<source type=\"" + CurMedia.mime_type + "\""
|
||||
Container += " src=\"" + CurMedia.get_path + "\" />"
|
||||
Container = "<video controls='controls' preload='metadata'>"
|
||||
Container += "<source type='%s' " % CurMedia.mime_type
|
||||
Container += "src='%s' />" % CurMedia.get_path
|
||||
Container += "</video>"
|
||||
else:
|
||||
Container = ""
|
||||
|
||||
Reference in New Issue
Block a user