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> id="video_${id}"
%else: class="video"
<div data-streams="${youtube_streams}"
id="video_${id}" ${'data-sub="{}"'.format(sub) if sub else ''}
class="video"
data-streams="${youtube_streams}" % if not settings.MITX_FEATURES['STUB_VIDEO_FOR_TESTING']:
${'data-sub="{}"'.format(sub) if sub else ''} ${'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-show-captions="${show_captions}" data-caption-data-dir="${data_dir}"
data-start="${start}" data-show-captions="${show_captions}"
data-end="${end}" data-start="${start}"
data-caption-asset-path="${caption_asset_path}" data-end="${end}"
data-autoplay="${autoplay}" data-caption-asset-path="${caption_asset_path}"
> data-autoplay="${autoplay}"
<div class="tc-wrapper"> >
<article class="video-wrapper"> <div class="tc-wrapper">
<section class="video-player"> <article class="video-wrapper">
<div id="${id}"></div> <section class="video-player">
</section> <div id="${id}"></div>
<section class="video-controls"></section> </section>
</article> <section class="video-controls"></section>
</div> </article>
</div> </div>
%endif </div>
% 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