1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Reproductor LibreVideoJS</title>
<link rel="author" type="text/plain" href="humans.txt">
<!--Favicon Libre-->
<link rel="shortcut icon" href="./images/gnu-linux_libre.png">
<!-- Normalizador -->
<link href="./css/normalize.css" rel="stylesheet" type="text/css">
<!--Begin | Estilos de la Página -->
<style>
body {
background-color: #141517;
color: white;
}
h1,
h2,
h3 {
text-align: center;
}
a {
text-decoration: none;
color: #189e7d;
}
a:hover {
color: #1de9b6;
}
.clase1 {
margin: 20px;
}
p,
.clase2 {
margin: 20px;
}
footer {
background-color: #1e1b1f;
text-align: center;
margin: 20px;
padding: 10px;
}
</style>
<!-- Ending | Estilos de la Página -->
<!-- LibreVideoJS - estilos -->
<link href="./css/default/cliplibre-js.dev.css" rel="stylesheet" type="text/css">
<!--LibreVideoJS-->
<script src="./js/cliplibrejs.dev.js"></script>
</head>
<body>
<h1>
Demo de LibreVideoJS trabajando con el plugin de hotkeys
</h1>
<article class="clase1">
<h3>Vídeo de Software Libre</h3>
<video id="example" controls data-setup="{}">
<source data-res="original" src="https://archive.org/download/libre848x476/libre640x480.ogv" type="video/ogg">
<p class="no_html5">Lo siento, este navegador no soporta HTML 5. Por favor, cambia o actualiza tu navegador Web</p>
</video>
</article>
<div>
<h2>Instrucciones para hotkeys</h2>
<ul>
<li>FullScreen: F</li>
<li>Volumen: key [Up - Down]</li>
<li>Mute: M</li>
<li>Timeline: Next[Rigth], Prev[Left]</li>
<li>Timeline advance: 0%[key 0], 10%[key 1]..., 90%[key 9]</li>
</ul>
</div>
<!-- Hotkeys -->
<script>
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
// Insert class base
var estilos = document.getElementById("example");
estilos.className += " cliplibre-js-responsive-container librevjs-hd cliplibre-js librevjs-default-skin";
// funciones
cliplibrejs('#example').ready(function() {
this.hotkeys({
volumeStep: 0.1,
seekStep: 5,
enableMute: true,
enableFullscreen: true,
enableNumbers: true
});
});
// @license-end
</script>
<footer>
Basado en VideoJS, depurado y escrito por Jesús Eduardo en el año 2016 - <span id="year"></span>.
</footer>
<!-- Script NO necesario | solo para la fecha -->
<script src="./js/fecha.js"></script>
</body>
</html>
|