Add hidden HTML so that the video player knows whether or not we're in the LMS.

This commit is contained in:
Peter Fogg
2013-05-29 15:45:36 -04:00
parent 42a55fafb2
commit e0d5118ca0
2 changed files with 8 additions and 1 deletions

View File

@@ -139,7 +139,8 @@ class VideoModule(VideoFields, XModule):
'show_captions': self.show_captions,
'start': self.start_time,
'end': self.end_time,
'normal_speed_video_id': normal_speed_video_id
'normal_speed_video_id': normal_speed_video_id,
'in_lms': True if self.system.course_id is not None else False
})

View File

@@ -39,3 +39,9 @@
<p>Download subtitles <a href="${track}">here</a>.</p>
</div>
% endif
%if in_lms:
<div id="in_lms" class="true" style="display: none;"></div>
%else:
<div id="in_lms" class="false" style="display: none;"></div>
%endif