Commit 6ab5bb2f by Will Daly

Changed videoalpha stub to exclude video sources, but include

the rest of the player.
parent 3b37e0c1
...@@ -2,34 +2,34 @@ ...@@ -2,34 +2,34 @@
<h2> ${display_name} </h2> <h2> ${display_name} </h2>
% endif % endif
%if settings.MITX_FEATURES['STUB_VIDEO_FOR_TESTING']: <div
<div id="stub_out_video_for_testing"></div>
%else:
<div
id="video_${id}" id="video_${id}"
class="video" class="video"
data-streams="${youtube_streams}" data-streams="${youtube_streams}"
${'data-sub="{}"'.format(sub) if sub else ''} ${'data-sub="{}"'.format(sub) if sub else ''}
% if not settings.MITX_FEATURES['STUB_VIDEO_FOR_TESTING']:
${'data-mp4-source="{}"'.format(sources.get('mp4')) if sources.get('mp4') else ''} ${'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-webm-source="{}"'.format(sources.get('webm')) if sources.get('webm') else ''}
${'data-ogg-source="{}"'.format(sources.get('ogv')) if sources.get('ogv') else ''} ${'data-ogg-source="{}"'.format(sources.get('ogv')) if sources.get('ogv') else ''}
% endif
data-caption-data-dir="${data_dir}" data-caption-data-dir="${data_dir}"
data-show-captions="${show_captions}" data-show-captions="${show_captions}"
data-start="${start}" data-start="${start}"
data-end="${end}" data-end="${end}"
data-caption-asset-path="${caption_asset_path}" data-caption-asset-path="${caption_asset_path}"
data-autoplay="${autoplay}" data-autoplay="${autoplay}"
> >
<div class="tc-wrapper"> <div class="tc-wrapper">
<article class="video-wrapper"> <article class="video-wrapper">
<section class="video-player"> <section class="video-player">
<div id="${id}"></div> <div id="${id}"></div>
</section> </section>
<section class="video-controls"></section> <section class="video-controls"></section>
</article> </article>
</div> </div>
</div> </div>
%endif
% if sources.get('main'): % if sources.get('main'):
<div class="video-sources"> <div class="video-sources">
......
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