episode.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {% extends "/html/base.html" %}
  2. {%block subtitle %}: {{page.title}}{% endblock %}
  3. {% block content %}
  4. <div id="custom-page">
  5. <div id="page-header">
  6. <h2>EPISODE {{page.title}}</h2>
  7. </div>
  8. <p>Sample of a segmented video file. 2sec max segment. Need to confirm keyframe alignment. ~450KB, should cache OK.</p>
  9. <link rel="stylesheet" href="/assets/videojs/video-js.min.css">
  10. <video id=example-video width=640 height=360 class="video-js vjs-default-skin" data-setup='{"controls": "true", "loop": "false", "autoplay": "false", "preload": "false"}'>
  11. <source
  12. src="{{page.video-url}}"
  13. type="application/x-mpegURL">
  14. </video>
  15. <script src="/assets/videojs/video.js"></script>
  16. <script src="/assets/videojs/videojs-contrib-hls.js"></script>
  17. <script>
  18. var player = videojs('example-video');
  19. player.play();
  20. </script>
  21. {% if page.toc %}{{page.toc|safe}}{% endif %}
  22. {{page.content|safe}}
  23. <div id="prev-next">
  24. {% if page.prev %}
  25. <a href="{{page.prev.uri}}">&laquo; {{page.prev.title}}</a>
  26. {% endif %}
  27. {% if all page.prev page.next %}
  28. ||
  29. {% endif %}
  30. {% if page.next %}
  31. <a href="{{page.next.uri}}">{{page.next.title}} &raquo;</a>
  32. {% endif %}
  33. </div>
  34. </div>
  35. {% endblock %}