Commit e0d5118c by Peter Fogg

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

parent 42a55faf
......@@ -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
})
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment