live.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {% extends "/html/base.html" %}
  2. {%block subtitle %}: {{page.title}}{% endblock %}
  3. {% block head %}
  4. <link rel="stylesheet" href="/assets/videojs/video-js.css">
  5. <script src="/assets/videojs/video.js"></script>
  6. <script src="/assets/videojs/videojs-contrib-hls.js"></script>
  7. {% endblock %}
  8. {% block content %}
  9. <div id="custom-page">
  10. <div id="page-header">
  11. <h2>{{page.title}}</h2>
  12. </div>
  13. {% if page.toc %}{{page.toc|safe}}{% endif %}
  14. <video id="video-player" width="640" height="360" class="video-js vjs-default-skin"
  15. controls poster="{{page.video-thumbnail-url}}" data-setyp='{"controls": "true", "loop": "false", "autoplay": "false", "preload": "false"}'>
  16. <source src="{{page.video-url}}" type="application/x-mpegURL">
  17. </source>
  18. <p class="vjs-no-js">The browser doesn't seem to support our video player... new browsers should.</p>
  19. </video>
  20. <p>{{page.video-description}}</p>
  21. <script>
  22. var player = videojs('video-player');
  23. //player.play();
  24. </script>
  25. {{page.content|safe}}
  26. <div id="prev-next">
  27. {% if page.prev %}
  28. <a href="{{page.prev.uri}}">&laquo; {{page.prev.title}}</a>
  29. {% endif %}
  30. {% if all page.prev page.next %}
  31. ||
  32. {% endif %}
  33. {% if page.next %}
  34. <a href="{{page.next.uri}}">{{page.next.title}} &raquo;</a>
  35. {% endif %}
  36. </div>
  37. </div>
  38. {% endblock %}