]> git.parisson.com Git - teleforma.git/commitdiff
fix tag
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 23 Jan 2023 15:09:23 +0000 (16:09 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 23 Jan 2023 15:09:23 +0000 (16:09 +0100)
teleforma/templates/teleforma/course_conference.html
teleforma/templates/teleforma/course_conference_record.html
teleforma/templatetags/teleforma_tags.py

index 20b05e37c512a6a54552197860d046856d389bcd..144c896dc50d64c9ca6f4304508e99a3ed5c7fcb 100644 (file)
@@ -53,7 +53,7 @@
 <div class="video">
 <video width="640" height="360" controls autoplay preload="auto">
 <!-- Hello Chrome and Firefox (and Opera?) -->
-<source src="{{ livestream.url|set_host:host }}#{% get_random_hash %}" type="video/webm" />
+<source src="{{ livestream.url|set_host:host }}#{% random_hash %}" type="video/webm" />
 </video>
 </div>
 {% endif %}
index 5f9b2ab2f2ce5f9f79330406d96e9d7579da4ad5..50073c4ef806c0ddae65949fefdaf7201a9028a6 100644 (file)
@@ -75,7 +75,7 @@ $(document).ready(function(){
 {% block video %}
 <div class="video">
 <video controls autoplay preload="auto" width="640" height="360">
-<source src="http://{{ host }}:8000/monitor.webm#{% get_random_hash %}" type="video/webm">
+<source src="http://{{ host }}:8000/monitor.webm#{% random_hash %}" type="video/webm">
 </video>
 </div>
 {% endblock video %}
index 60a1fdeb808a0f8b8eab0ad5a6d463cdf77a0018..d96adcf7dac18b9292bf93c5beb0fa4021b2caaa 100644 (file)
@@ -200,5 +200,5 @@ def set_host(url, host):
     return u.scheme + '://' + host + ':' + str(u.port) + u.path
 
 @register.tag
-def get_random_hash(parser, token):
+def random_hash(parser, token):
     return get_random_hash()