fresh.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {% extends "/html/base.html" %}
  2. {%block subtitle %}: {{page.title}}{% endblock %}
  3. {% block head %}
  4. {% include "/html/partials/video-head-videojs.html" %}
  5. {% endblock %}
  6. {% block content %}
  7. <div id="custom-page">
  8. <div id="page-header">
  9. <h2>{{page.title}}</h2>
  10. </div>
  11. {% if page.video-yt-id %}
  12. <div id="whats-ispooge-live-video-yt" style="">
  13. <video id="video-player" width="640" height="360" class="video-js vjs-default-skin"
  14. controls poster="{{page.video-thumbnail-url}}" data-setyp='{"controls": "true", "loop": "false", "autoplay": "false", "preload": "false"}'>
  15. <source src="{{page.video-url}}" type="application/x-mpegURL">
  16. </source>
  17. <p class="vjs-no-js">The browser doesn't seem to support our video player... new browsers should.</p>
  18. </video>
  19. <script>
  20. var player = videojs('video-player');
  21. player.ready(function() {
  22. player.mediaSession();
  23. });
  24. //player.play();
  25. </script>
  26. </div>
  27. {% endif %}
  28. {% if page.toc %}{{page.toc|safe}}{% endif %}
  29. {{page.content|safe}}
  30. <script>
  31. var el = document.getElementById('whats_ispooge_live_video');
  32. var newEl = document.getElementById('whats-ispooge-live-video-yt');
  33. newEl.parentElement.replaceChild(newEl, el);
  34. </script>
  35. </div>
  36. {% endblock %}