episode.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% extends "/html/base.html" %}
  2. {%block subtitle %}: {{post.title}}{% endblock %}
  3. {% block content %}
  4. <script src="/assets/videojs/video.js"></script>
  5. <script src="/assets/videojs/videojs-contrib-hls.js"></script>
  6. <div id="post">
  7. <div id="page-header">
  8. <h2>EPISODE {{post.title}}</h2>
  9. </div>
  10. <link rel="stylesheet" href="/assets/videojs/video-js.css">
  11. <video id=example-video width=640 height=360 class="video-js vjs-default-skin" data-setup='{"controls": "true", "loop": "false", "autoplay": "false", "preload": "false"}'>
  12. <source
  13. src="{{post.video-url}}"
  14. type="application/x-mpegURL">
  15. </video>
  16. <script>
  17. var player = videojs('example-video');
  18. player.play();
  19. </script>
  20. {% include "/html/post-content.html" %}
  21. <div id="prev-next">
  22. {% if post.prev %}
  23. <a href="{{post.prev.uri}}">&laquo; {{post.prev.title}}</a>
  24. {% endif %}
  25. {% if post.next %}
  26. <a class="right" href="{{post.next.uri}}">{{post.next.title}} &raquo;</a>
  27. {% endif %}
  28. </div>
  29. </div>
  30. {% endblock %}