return 'http://' + self.server.host + ':' + self.server.port + '/' + self.mount_point
@property
- def relative_url(self):
- return '/' + self.mount_point
+ def local_url(self):
+ return '/stream/' + self.mount_point
def __unicode__(self):
if self.conference:
<div class="video">
<video width="640" height="360" controls autoplay preload="auto">
<!-- Hello Chrome and Firefox (and Opera?) -->
-<source src="{{ livestream.relative_url }}?v={% random_hash %}" type="video/webm" />
+<source src="{{ livestream.local_url }}?v={% random_hash %}" type="video/webm" />
</video>
</div>
{% endif %}