Add hidden HTML so that the video player knows whether or not we're in the LMS.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user