live.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {% extends "/html/base.html" %}
  2. <!--
  3. This is used for live broadcasts (general stream, not necessarily event)
  4. -->
  5. {%block subtitle %}: Live{% endblock %}
  6. {% block head %}
  7. <link rel="stylesheet" href="/assets/videojs/video-js.css">
  8. <script src="/assets/videojs/video.js"></script>
  9. <script src="/assets/videojs/videojs-contrib-hls.js"></script>
  10. {% endblock %}
  11. {% block content %}
  12. <div id="custom-page">
  13. <div id="page-header">
  14. <h2>{{page.title}}</h2>
  15. </div>
  16. {% if page.toc %}{{page.toc|safe}}{% endif %}
  17. <video id="video-player" width="640" height="360" class="video-js vjs-default-skin"
  18. controls poster="{{page.video-thumbnail-url}}" data-setyp='{"controls": "true", "loop": "false", "autoplay": "false", "preload": "false"}'>
  19. <source src="{{page.video-url}}" type="application/x-mpegURL">
  20. </source>
  21. <p class="vjs-no-js">The browser doesn't seem to support our video player... new browsers should.</p>
  22. </video>
  23. <p>{{page.video-description}}</p>
  24. <script>
  25. var player = videojs('video-player');
  26. //player.play();
  27. </script>
  28. {{page.content|safe}}
  29. <p>Feedback? social at this domain dot com or (415)-937-seven f0ur six seven</p>
  30. {% include "/html/partials/live-alternatives.html" %}
  31. </div>
  32. {% endblock %}