live.html 1.3 KB

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