]> git.parisson.com Git - teleforma.git/commitdiff
fix video url
authoryomguy <yomguy@parisson.com>
Fri, 13 Jul 2012 22:46:18 +0000 (00:46 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 13 Jul 2012 22:46:18 +0000 (00:46 +0200)
teleforma/templates/teleforma/course_conference.html
teleforma/views.py

index 50ea0cbe27765964d851c855bf987f53f92c869a..02f5a3ea7fe90d354fff357fa751f8ecc6a54d2c 100644 (file)
@@ -4,11 +4,10 @@
 {% load i18n %}
 
 {% block module-action %}
-{% if "telecaster"|installed %}
 <script src="{{ STATIC_URL }}teleforma/js/application.js" type="text/javascript"></script>
-{% if 'telecaster'|installed %}
+{% get_telecaster as telecaster %}
+{%  if telecaster %}
 <script src="{{ STATIC_URL }}telecaster/js/application.js" type="text/javascript"></script>
-{% endif %}
 <script type="text/javascript">
 
 var conferenceUtils = {
@@ -79,13 +78,15 @@ jQuery(window).ready(function(){
 {% block chat %}
 <div id="module-set" style="width: 22%">
 
-{% if 'telecaster'|installed %}
+{% get_telecaster as telecaster %}
+{%  if telecaster %}
 <div class="module">
  <h3><img src="{{STATIC_URL}}teleforma/images/status.png" alt="status" style="vertical-align:middle" /> {% trans "Status" %}</h3>
  <div id="server_status_table_wrapper" class="status"></div>
 </div>
 {% endif %}
 
+
 {% if room %}
 {% with "Local tweeter" as title %}
 {% include "teleforma/inc/chat_room.html" %}
@@ -94,7 +95,9 @@ jQuery(window).ready(function(){
 
 </div>
 
-{% if 'telecaster'|installed %}
+<script src="{{ STATIC_URL }}teleforma/js/application.js" type="text/javascript"></script>
+{% get_telecaster as telecaster %}
+{%  if telecaster %}
 <script type="text/javascript">
 server_status_callback();
 </script>
index 8686c4867255385e469afabc0c8d17f55e8a710e..804e3fea8525ae30c42e10114db3887e84809216 100755 (executable)
@@ -387,7 +387,8 @@ class ConferenceRecordView(FormView):
             type = station['type']
             conf = station['conf']
             port = station['port']
-            server, c= StreamingServer.objects.get_or_create(host=status.ip, port=port)
+            server_type = station['server_type']
+            server, c = StreamingServer.objects.get_or_create(host=status.ip, port=port, type=server_type)
             station = Station(conference=self.conference, public_id=uuid)
             station.setup(conf)
             station.start()