Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
daf78a6f
Commit
daf78a6f
authored
Apr 23, 2017
by
Andreas Valder
Browse files
closes
#268
parent
33200935
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/base.html
View file @
daf78a6f
...
...
@@ -30,6 +30,7 @@
<script
src=
"{{url_for('static', filename='plotly.min.js')}}"
></script>
{% endif %}
<script
src=
"{{url_for('static', filename='videojs/video.js')}}"
></script>
<script
src=
"{{url_for('static', filename='videojs/lang/de.js')}}"
></script>
<script
src=
"{{url_for('static', filename='videojs/ie8/videojs-ie8.js')}}"
></script>
<script
src=
"{{url_for('static', filename='videojs/videojs-resolution-switcher.js')}}"
></script>
<script
src=
"{{url_for('static', filename='videojs/videojs-contrib-hls.js')}}"
></script>
...
...
templates/macros.html
View file @
daf78a6f
...
...
@@ -46,7 +46,7 @@
{% endmacro %}
{% macro player(lecture, videos, msgs) %}
<video
id=
"videoplayer"
style=
"width: 100%"
class=
"video-js vjs-default-skin vjs-big-play-centered"
width=
"640"
height=
"320"
controls
data-wasnotplayed=
"1"
data-setup=
'{ "plugins" : {"hotkeys": {"seekStep": 15, "enableVolumeScroll": false, "alwaysCaptureHotkeys": true}, "videoJsResolutionSwitcher": { "ui": true, "default": "720p", "dynamicLabel": false } }, "customControlsOnMobile": true, "playbackRates": [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 2.25, 2.5, 2.75, 3, 3.25, 3.5, 3.75, 4] }'
>
<video
id=
"videoplayer"
style=
"width: 100%"
class=
"video-js vjs-default-skin vjs-big-play-centered"
width=
"640"
height=
"320"
controls
data-wasnotplayed=
"1"
data-setup=
'{
"language":"de",
"plugins" : {"hotkeys": {"seekStep": 15, "enableVolumeScroll": false, "alwaysCaptureHotkeys": true}, "videoJsResolutionSwitcher": { "ui": true, "default": "720p", "dynamicLabel": false } }, "customControlsOnMobile": true, "playbackRates": [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 2.25, 2.5, 2.75, 3, 3.25, 3.5, 3.75, 4] }'
>
{% for v in videos|sort(attribute='player_prio', reverse=True) %}
<source
type=
"{{ v.mimetype }}"
src=
"{{ config.VIDEOPREFIX }}/{{ v.path }}"
label=
"{{ v.format_description }}"
/>
{% endfor %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment