mirror of
https://github.com/videojs/video.js.git
synced 2024-12-12 11:15:04 +02:00
51bd49f4bc
This adds a breakpoints option. By default, this option is false meaning this is an opt-in feature. When passing true, it will use a default set of breakpoints. Or custom breakpoints can be passed if users do not like our breakpoints (or previously-existing style decisions). - Add breakpoints option. - Adds some new (currently unused) classes: vjs-layout-medium, vjs-layout-large, vjs-layout-x-large, and vjs-layout-huge. - Add updateCurrentBreakpoint and currentBreakpoint methods to the player. - Update css/components/_adaptive.scss - Add sandbox/responsive.html.example Closes videojs/video.js#4371
66 lines
2.7 KiB
Plaintext
66 lines
2.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<!-- Set Page Language Here -->
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>VideoJS Languages Demo</title>
|
|
|
|
<!-- Load the source files -->
|
|
<link href="../dist/video-js.css" rel="stylesheet" type="text/css">
|
|
<script src="../dist/video.js"></script>
|
|
|
|
<!-- Set the location of the flash SWF -->
|
|
<script>
|
|
videojs.options.flash.swf = '../node_modules/videojs-flash/node_modules/videojs-swf/dist/video-js.swf';
|
|
</script>
|
|
|
|
<!-- Add support for Spanish 'es' -->
|
|
<script>
|
|
videojs.addLanguage('es', {
|
|
"Play": "Reproducción",
|
|
"Play Video": "Reproducción Vídeo",
|
|
"Pause": "Pausa",
|
|
"Current Time": "Tiempo reproducido",
|
|
"Duration": "Duración total",
|
|
"Remaining Time": "Tiempo restante",
|
|
"Stream Type": "Tipo de secuencia",
|
|
"LIVE": "DIRECTO",
|
|
"Loaded": "Cargado",
|
|
"Progress": "Progreso",
|
|
"Fullscreen": "Pantalla completa",
|
|
"Non-Fullscreen": "Pantalla no completa",
|
|
"Mute": "Silenciar",
|
|
"Unmute": "No silenciado",
|
|
"Playback Rate": "Velocidad de reproducción",
|
|
"Subtitles": "Subtítulos",
|
|
"subtitles off": "Subtítulos desactivados",
|
|
"Captions": "Subtítulos especiales",
|
|
"captions off": "Subtítulos especiales desactivados",
|
|
"Chapters": "Capítulos",
|
|
"You aborted the media playback": "Ha interrumpido la reproducción del vídeo.",
|
|
"A network error caused the media download to fail part-way.": "Un error de red ha interrumpido la descarga del vídeo.",
|
|
"The media could not be loaded, either because the server or network failed or because the format is not supported.": "No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.",
|
|
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.",
|
|
"No compatible source was found for this media.": "No se ha encontrado ninguna fuente compatible con este vídeo."
|
|
});
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<video id="vid1" class="video-js" controls preload="auto" width="640" height="264" data-setup=''>
|
|
<!--
|
|
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4'>
|
|
<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm'>
|
|
<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg'>
|
|
-->
|
|
</video>
|
|
|
|
<script>
|
|
var player = videojs("vid1");
|
|
player.controlBar.show();
|
|
player.error(1);
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|