embed.tpl 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html lang="es">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  6. <title>{$titulo} | {$videoTitle}</title>
  7. <link rel="icon" href="templates/images/favicon.png" sizes="192x192" />
  8. <!--Plyr-->
  9. <link href="{$styles.plyr}" rel="stylesheet"/>
  10. <style>
  11. body {
  12. margin: 0rem;
  13. padding: 0rem;
  14. }
  15. </style>
  16. <script>
  17. /*
  18. @licstart The following is the entire license notice for the
  19. JavaScript code in this page.
  20. Copyright (C) {$smarty.now|date_format:"%Y"} Jesús E. | <heckyel@hyperbola.info>
  21. The JavaScript code in this page is free software: you can
  22. redistribute it and/or modify it under the terms of the GNU
  23. General Public License (GNU GPL) as published by the Free Software
  24. Foundation, either version 3 of the License, or (at your option)
  25. any later version. The code is distributed WITHOUT ANY WARRANTY;
  26. without even the implied warranty of MERCHANTABILITY or FITNESS
  27. FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
  28. As additional permission under GNU GPL version 3 section 7, you
  29. may distribute non-source (e.g., minimized or compacted) forms of
  30. that code without the copy of the GNU GPL normally required by
  31. section 4, provided you include this license notice and a URL
  32. through which recipients can access the Corresponding Source.
  33. @licend The above is the entire license notice
  34. for the JavaScript code in this page.
  35. */
  36. </script>
  37. </head>
  38. <body>
  39. {if $islive == false }
  40. <video id="player"
  41. poster="{$videoThumbURL}"
  42. controls
  43. playsinline
  44. onmouseleave='{$videoTitle}'
  45. oncontextmenu='{$videoTitle}'
  46. onmouseenter='{$videoTitle}'
  47. title='{$videoTitle}'>
  48. {foreach $streamFormats as $stream}
  49. <source data-res="{trim($stream['resolution'], 'p')}" src="{$stream['url']}" type='{$stream['type']}'/>
  50. {/foreach}
  51. <p>Lo siento, este navegador no soporta vídeo en HTML5. Por favor, cambia o actualiza tu navegador web</p>
  52. </video>
  53. <!--Plyr-->
  54. <script>
  55. // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
  56. document.addEventListener('DOMContentLoaded', () => {
  57. const player = new Plyr(document.getElementById('player'), {
  58. disableContextMenu: false,
  59. controls: [
  60. 'play-large',
  61. 'play',
  62. 'progress',
  63. 'current-time',
  64. 'mute',
  65. 'volume',
  66. 'captions',
  67. 'settings',
  68. 'download',
  69. 'fullscreen'
  70. ]
  71. });
  72. });
  73. // @license-end
  74. </script>
  75. <!--EndPlyr-->
  76. {else}
  77. <p>I sorry not live support for now.</p>
  78. {/if}
  79. <script src="{$javascript.plyr}" integrity="sha512-YjLaaKupD6GUZwnkLn8LbzL73ZhgY01zYCaeCscD/+khdOtmPfz02tw/cb9kYySUSPlpQoBT8HGY/ggiKAjA7A=="></script>
  80. </body>
  81. </html>