From f2915b63a365bce4d519d65c1c8898904fca23cc Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 9 Apr 2012 15:09:47 +0530 Subject: [PATCH] just use video tag --- itf/padmavideos/models.py | 4 ++++ itf/templates/modules/festival/meeting.html | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/itf/padmavideos/models.py b/itf/padmavideos/models.py index 9650f31..c56e52b 100644 --- a/itf/padmavideos/models.py +++ b/itf/padmavideos/models.py @@ -92,6 +92,10 @@ class PadmaClip(ItfModel): object_id = models.PositiveIntegerField() content_object = generic.GenericForeignKey('content_type', 'object_id') + @property + def video_src(self, size=240): + return "http://%s/%s/%dp.webm" % (PANDORA_BASE, self.padmavideo.padma_id, size) + def save(self, *args, **kwargs): embed_code = self.embed_code regex = r'\' diff --git a/itf/templates/modules/festival/meeting.html b/itf/templates/modules/festival/meeting.html index d9ece7d..4eb8818 100755 --- a/itf/templates/modules/festival/meeting.html +++ b/itf/templates/modules/festival/meeting.html @@ -103,7 +103,9 @@ {% ifnotequal talk.videos.all|length 0 %}
{% for v in talk.videos.all %} - {{ v.embed_code|safe }} +
+ + {% endfor %}
{% endifnotequal %}