video.html 1.45 KB
Newer Older
1 2
% if display_name is not UNDEFINED and display_name is not None:
  <h2> ${display_name} </h2>
Piotr Mitros committed
3
% endif
4

5
%if settings.MITX_FEATURES['STUB_VIDEO_FOR_TESTING']:
6
  <div id="stub_out_video_for_testing"></div>
7 8 9 10 11 12 13 14 15 16 17

%elif settings.MITX_FEATURES.get('USE_YOUTUBE_OBJECT_API') and normal_speed_video_id:
  <object width="640" height="390">
    <param name="movie"
           value="https://www.youtube.com/v/${normal_speed_video_id}?version=3&amp;autoplay=1&amp;rel=0"></param>
    <param name="allowScriptAccess" value="always"></param>
    <embed src="https://www.youtube.com/v/${normal_speed_video_id}?version=3&amp;autoplay=1&amp;rel=0"
           type="application/x-shockwave-flash"
           allowscriptaccess="always"
           width="640" height="390"></embed>
  </object>
18
%else:
19
  <div id="video_${id}" class="video" data-streams="${streams}" data-caption-data-dir="${data_dir}" data-show-captions="${show_captions}" data-start="${start}" data-end="${end}" data-caption-asset-path="${caption_asset_path}">
20 21 22 23 24 25 26 27
    <div class="tc-wrapper">
      <article class="video-wrapper">
        <section class="video-player">
          <div id="${id}"></div>
        </section>
        <section class="video-controls"></section>
      </article>
    </div>
28
  </div>
29 30
%endif

31 32 33 34 35
% if source:
<div class="video-sources">
  <p>Download video <a href="${source}">here</a>.</p>
</div>
% endif
36 37 38 39 40 41

% if track:
<div class="video-tracks">
  <p>Download subtitles <a href="${track}">here</a>.</p>
</div>
% endif