harella1/video.js

View on GitHub
sandbox/language.html.example

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<!-- Set Page Language Here -->
<html lang="es">
<head>
  <meta charset="utf-8" />
  <title>VideoJS Languages Demo</title>

  <!-- Add ES5 shim and sham for IE8 -->
  <script src="../build/temp/ie8/videojs-ie8.js"></script>

  <!-- Load the source files -->
  <link href="../build/temp/video-js.css" rel="stylesheet" type="text/css">
  <script src="../build/temp/video.js"></script>

  <!-- Set the location of the flash SWF -->
  <script>
    videojs.options.flash.swf = '../build/temp/video-js.swf';
  </script>

  <!-- Add support for Spanish 'es' -->
  <script>
    videojs.addLanguage('es', {
      "Play": "Juego",
      "Pause": "Pausa",
      "Current Time": "Tiempo Actual",
      "Duration Time": "Tiempo de Duracion",
      "Remaining Time": "Tiempo Restante",
      "Stream Type": "Tipo de Transmision",
      "LIVE": "En Vivo",
      "Loaded": "Cargado",
      "Progress": "Progreso",
      "Fullscreen": "Pantalla Completa",
      "Non-Fullscreen": "No Pantalla Completa",
      "Mute": "Mudo",
      "Unmute": "Activar sonido",
      "Playback Rate": "Reproduccion Cambio",
      "Subtitles": "Subtitulos",
      "subtitles off": "subtitulos fuera",
      "Captions": "Subtitulos",
      "captions off": "subtitulos fuera",
      "Chapters": "Capitulos",
      "You aborted the video playback": "Ha anulado la reproduccion de video",
      "A network error caused the video download to fail part-way.": "Un error en la red hizo que la descarga de video falle parte del camino.",
      "The video could not be loaded, either because the server or network failed or because the format is not supported.": "El video no se puede cargar, ya sea porque el servidor o la red fracasaron o porque el formato no es compatible.",
      "The video playback was aborted due to a corruption problem or because the video used features your browser did not support.": "La reproduccion de video se ha cancelado debido a un problema de corrupcion o porque el video utilizado cuenta con su navegador no soporta.",
      "No compatible source was found for this video.": "Ninguna fuente compatible se encontro para este video."
    });
  </script>

</head>
<body>
  <video id="vid1" class="video-js vjs-default-skin" 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>