2
0

embed.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" prefix="og: http://ogp.me/ns#">
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>{{title}}{% block subtitle %}{% endblock %}</title>
  6. <link rel="canonical" href="{{site-url}}{{uri}}">
  7. <meta name="twitter:card" content="summary_large_image">
  8. <meta name="twitter:site" content="@ispoogedaily">
  9. <meta name="twitter:creator" content="@harlanji">
  10. <meta property="og:url" content="{{site-url}}{{uri}}">
  11. <meta property="og:title" content="Sunset over ocean beach">
  12. <meta property="og:description" content="VIDEO - Sunset over ocean beach.">
  13. <meta property="og:image" content="{{page.video-thumbnail-url}}">
  14. <meta name="viewport" content="width=device-width, initial-scale=1">
  15. {% style "css/bootstrap-3.3.0.css" %}
  16. {% style "css/font-awesome-4.2.0.css" %}
  17. {% style "css/screen.css" %}
  18. <link rel="stylesheet" href="/assets/videojs/video-js.css">
  19. <script src="/assets/videojs/video.js"></script>
  20. <script src="/assets/videojs/videojs-contrib-hls.js"></script>
  21. <script src="/assets/videojs/videojs-media-session.js"></script>
  22. <script src="/assets/videojs/videojs-playbackrate-adjuster.js"></script>
  23. <script src="/assets/videojs/videojs-contrib-quality-levels.js"></script>
  24. {% script "js/jquery-1.11.js" %}
  25. {% script "js/bootstrap-3.3.0.js" %}
  26. </head>
  27. <body>
  28. <video id="video-player" style="position: absolute; width: 100%; height: 100%;" width="100%" height="100%" class="video-js vjs-default-skin"
  29. controls poster="{{page.video-thumbnail-url}}" data-setyp='{"width": "auto", "height": "auto", "controls": "true", "loop": "false", "autoplay": "false", "preload": "false"}'>
  30. <source src="{{page.video-url}}" type="application/x-mpegURL">
  31. </source>
  32. <p class="vjs-no-js">The browser doesn't seem to support our video player... new browsers should.</p>
  33. </video>
  34. <script>
  35. var player = videojs('video-player');
  36. player.ready(function() {
  37. var myPlayer = this;
  38. var vid = document.location.hash.substr(1);
  39. if (vid) {
  40. myPlayer.poster('/media/videos/' + vid + '.jpg');
  41. myPlayer.src({ type: 'application/x-mpegURL', src: '/media/videos/' + vid + '.hls/playlist.m3u8' });
  42. }
  43. player.mediaSession();
  44. player.qualityLevels();
  45. });
  46. </script>
  47. </body>
  48. </html>