def url(self):
return 'http://' + self.server.host + ':' + self.server.port + '/' + self.mount_point
+ @property
+ def relative_url(self):
+ return '/' + self.mount_point
+
def __unicode__(self):
if self.conference:
return self.conference.description
<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 }}?v={% random_hash %}" type="video/webm" />
+<source src="{{ livestream.relative_url }}?v={% random_hash %}" type="video/webm" />
</video>
</div>
{% endif %}