demo-custom-material-multicolors.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Reproductor LibreVideoJS basado en VideoJS v4.3.</title>
  8. <link rel="author" type="text/plain" href="humans.txt">
  9. <!-- Favicon Libre -->
  10. <link rel="shortcut icon" href="./images/gnu-linux_libre.png">
  11. <!-- Normalizador -->
  12. <link href="./css/normalize.css" rel="stylesheet" type="text/css">
  13. <!--Begin | Estilos de la Página -->
  14. <style>
  15. body {
  16. background-color: #141517;
  17. color: white;
  18. }
  19. .change_color {
  20. text-align: center;
  21. }
  22. .change_color input[type='Button'] {
  23. display: inline-block;
  24. border-style: none;
  25. cursor: pointer;
  26. font-size: 12px;
  27. text-align: center;
  28. margin-top: 10px;
  29. padding: 5px 10px;
  30. }
  31. .change_color input[onclick="multiColor('teal');"] {
  32. background-color: #2ecc71;
  33. }
  34. .change_color input[onclick="multiColor('blue');"] {
  35. background-color: #3498db;
  36. }
  37. .change_color input[onclick="multiColor('yellow');"] {
  38. background-color: #f1c40f;
  39. }
  40. .change_color input[onclick="multiColor('red');"] {
  41. background-color: #e74c3c;
  42. }
  43. .change_color input[onclick="multiColor('purple');"] {
  44. background-color: #9b59b6;
  45. }
  46. .change_color input[onclick="multiColor('grey');"] {
  47. background-color: #9e9e9e;
  48. }
  49. h1,
  50. h2,
  51. h3 {
  52. text-align: center;
  53. }
  54. a {
  55. text-decoration: none;
  56. color: #189e7d;
  57. }
  58. a:hover {
  59. color: #1de9b6;
  60. }
  61. .clase1 {
  62. margin: 20px;
  63. }
  64. p,
  65. .clase2 {
  66. margin: 20px;
  67. }
  68. footer {
  69. background-color: #1e1b1f;
  70. text-align: center;
  71. margin: 20px;
  72. padding: 10px;
  73. }
  74. </style>
  75. <!-- Ending | Estilos de la Página -->
  76. <!-- LibreVideoJS Estilos -->
  77. <link rel="stylesheet" href="./css/selector/video-quality-selector.css">
  78. <script>
  79. /*
  80. @licstart The following is the entire license notice for the
  81. JavaScript code in this page.
  82. Copyleft 2017 Jesús Eduardo.
  83. The JavaScript code in this page is free software: you can
  84. redistribute it and/or modify it under the terms of the GNU
  85. General Public License (GNU GPL) as published by the Free Software
  86. Foundation, either version 3 of the License, or (at your option)
  87. any later version. The code is distributed WITHOUT ANY WARRANTY;
  88. without even the implied warranty of MERCHANTABILITY or FITNESS
  89. FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
  90. As additional permission under GNU GPL version 3 section 7, you
  91. may distribute non-source (e.g., minimized or compacted) forms of
  92. that code without the copy of the GNU GPL normally required by
  93. section 4, provided you include this license notice and a URL
  94. through which recipients can access the Corresponding Source.
  95. @licend The above is the entire license notice
  96. for the JavaScript code in this page.
  97. */
  98. </script>
  99. <!-- LibreVideoJS - estilos -->
  100. <script>
  101. var filename = "./css/librevideojs-material/libre-skin-teal.css";
  102. var _color = location.search.split('color=')[1];
  103. if (_color != undefined && _color != "" && _color != "teal")
  104. filename = "./css/librevideojs-material/libre-skin-" + _color + ".css";
  105. var fileref = document.createElement("link");
  106. fileref.setAttribute("rel", "stylesheet");
  107. fileref.setAttribute("type", "text/css");
  108. fileref.setAttribute("href", filename);
  109. document.getElementsByTagName("head")[0].appendChild(fileref);
  110. </script>
  111. <!--LibreVideoJS-->
  112. <script src="js/cliplibrejs.dev.js"></script>
  113. </head>
  114. <body>
  115. <header>
  116. <h1>Reproductor LibreVideoJS</h1>
  117. </header>
  118. <section>
  119. <h2>Sección Libre</h2>
  120. <article class="clase1">
  121. <h3>Vídeo de Software Libre</h3>
  122. <video id="example" controls="controls" preload="none" poster="images/poster.jpg" data-setup="{}">
  123. <source data-res="original" src="https://archive.org/download/libre848x476/libre640x480.ogv" type="video/ogg">
  124. <source data-res="480p" src="https://archive.org/download/libre848x476/libre848x476.ogv" type="video/ogg">
  125. <source data-res="240p" src="https://archive.org/download/libre848x476/libre320x240.ogv" type="video/ogg">
  126. <source data-res="144p" src="https://archive.org/download/libre848x476/libre256x144.ogv" type="video/ogg">
  127. <track kind="captions" src="./subtitles/libre_en.vtt" srclang="en" label="English">
  128. <track kind="captions" src="./subtitles/libre_es.vtt" srclang="es" label="Español" default="">
  129. <track kind="subtitles" src="./subtitles/libre_en.vtt" srclang="en" label="English">
  130. <p class="no_html5">Lo siento, este navegador no soporta HTML 5. Por favor, cambia o actualiza tu navegador Web</p>
  131. </video>
  132. <div class="change_color">
  133. <input type="Button" onclick="multiColor('teal');" value="teal">
  134. <input type="Button" onclick="multiColor('blue');" value="blue">
  135. <input type="Button" onclick="multiColor('yellow');" value="yellow">
  136. <input type="Button" onclick="multiColor('red');" value="red">
  137. <input type="Button" onclick="multiColor('purple');" value="purple">
  138. <input type="Button" onclick="multiColor('grey');" value="grey">
  139. </div>
  140. </article>
  141. </section>
  142. <p>Conferencia de Richard M. Stallman en Retina | España</p>
  143. <p>Puede: <a href="https://archive.org/download/libre848x476/libre640x480.ogv" download="Conferencia-de-Richard-M.-Stallman-en-Retina-España" target="_blank">Descargar el vídeo</a></p>
  144. <aside class="clase2">
  145. <h3>¿Qué es el software Libre?</h3>
  146. <blockquote cite="https://www.gnu.org/home.es.html">
  147. <p>
  148. Software libre significa que los usuarios tienen la libertad de ejecutar, copiar, distribuir, estudiar, modificar y mejorar el software.
  149. <br> El software libre es una cuestión de libertad, no de precio. Para entender el concepto, debe pensarse en «Libre» como en «Libertad de expresión», no como en «cerveza gratis».
  150. </p>
  151. </blockquote>
  152. </aside>
  153. <!-- Quality Selector + Hotkeys + Change of Colors-->
  154. <script type="text/javascript">
  155. // Insert class base
  156. var estilos = document.getElementById("example");
  157. estilos.className += " cliplibre-js-responsive-container librevjs-hd cliplibre-js librevjs-libre-skin";
  158. // funciones
  159. cliplibrejs('#example', {
  160. plugins: {
  161. resolutionSelector: {
  162. force_types: ['video/webm', 'video/ogg'],
  163. default_res: "480p",
  164. }
  165. },
  166. nativeControlsForTouch: false
  167. }).ready(function(){
  168. this.hotkeys({
  169. volumeStep: 0.1,
  170. seekStep: 5,
  171. enableMute: true,
  172. enableFullscreen: true,
  173. enableNumbers: true,
  174. });
  175. });
  176. function multiColor(_color) {
  177. history.replaceState({}, '', '?color=' + _color);
  178. location.reload();
  179. };
  180. </script>
  181. <!--
  182. Abajo ↓ : Códigos individuales
  183. -->
  184. <!-- Quality Selector -->
  185. <!--
  186. <script type="text/javascript">
  187. cliplibrejs('#example', {
  188. plugins: {
  189. resolutionSelector: {
  190. force_types: ['video/webm', 'video/ogg'],
  191. default_res: "480p"
  192. }
  193. },
  194. nativeControlsForTouch: false
  195. });
  196. function multiColor(_color) {
  197. history.replaceState({}, '', '?color=' + _color);
  198. location.reload();
  199. };
  200. </script>
  201. -->
  202. <!-- Hotkeys -->
  203. <!--
  204. <script>
  205. // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
  206. cliplibrejs('#example').ready(function() {
  207. this.hotkeys({
  208. volumeStep: 0.1,
  209. seekStep: 5,
  210. enableMute: true,
  211. enableFullscreen: true,
  212. enableNumbers: true
  213. });
  214. });
  215. // @license-end
  216. </script>
  217. -->
  218. <footer>
  219. Basado en VideoJS, depurado y escrito por Jesús Eduardo en el año 2016 - <span id="year"></span>.
  220. </footer>
  221. <!--Script NO necesario | solo para la fecha-->
  222. <script src="./js/fecha.js"></script>
  223. </body>
  224. </html>