videoalpha.html 1.29 KB
Newer Older
1 2 3 4 5 6 7
% if display_name is not UNDEFINED and display_name is not None:
  <h2> ${display_name} </h2>
% endif

%if settings.MITX_FEATURES['STUB_VIDEO_FOR_TESTING']:
  <div id="stub_out_video_for_testing"></div>
%else:
8 9 10
  <div
      id="video_${id}"
      class="video"
11
      data-streams="${youtube_streams}"
12
      ${'data-sub="{}"'.format(sub) if sub else ''}
13 14 15
      ${'data-mp4-source="{}"'.format(sources.get('mp4')) if sources.get('mp4') else ''}
      ${'data-webm-source="{}"'.format(sources.get('webm')) if sources.get('webm') else ''}
      ${'data-ogg-source="{}"'.format(sources.get('ogv')) if sources.get('ogv') else ''}
16 17 18 19 20 21
      data-caption-data-dir="${data_dir}"
      data-show-captions="${show_captions}"
      data-start="${start}"
      data-end="${end}"
      data-caption-asset-path="${caption_asset_path}"
  >
22 23 24 25 26 27 28 29 30 31 32
    <div class="tc-wrapper">
      <article class="video-wrapper">
        <section class="video-player">
          <div id="${id}"></div>
        </section>
        <section class="video-controls"></section>
      </article>
    </div>
  </div>
%endif

33
% if sources.get('main'):
34
<div class="video-sources">
35
  <p>Download video <a href="${sources.get('main')}">here</a>.</p>
36 37 38 39 40 41 42 43
</div>
% endif

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