Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

115
Vistas
a given URL is the access location for the source files for the library

My task was to merge two videos together and play them one after another automatically. This is the source code of my project html code -

var video = document.getElementById('videoPlayer');

video.addEventListener('ended', function(event) {
  var currentVid = document.querySelector("#videoPlayer source.current");
  var nextVid = document.querySelector("#videoPlayer source.current + source") || document.querySelector("#videoPlayer source:first-child");

  currentVid.className = "";
  nextVid.className = "current";

  video.src = nextVid.src;
  video.play();
});
<video id="videoPlayer" width="500" height="350" controls style="background:black">
        <source class="current" src="MY_VIDEO.mp4" type="video/mp4" />
        <source src="video2.mp4" type="video/mp4" />
      </video>

My next task says https://videojs.com/ is the URL to access the source files for the library. I am not getting what does this means? Any idea? Thanks in advance :)

about 4 years ago · Juan Pablo Isaza
3 Respuestas
Responde la pregunta

0

I think there is a cdn where all css/js files are hosted on that link. Can you provide more details, so I can help! Thank you!

about 4 years ago · Juan Pablo Isaza Denunciar

0

See https://videojs.com/getting-started/

You can get CDN hosted dist files at https://vjs.zencdn.net/7.19.2/video-js.css and https://vjs.zencdn.net/7.19.2/video.min.js, or install with NPM.

about 4 years ago · Juan Pablo Isaza Denunciar

0

You don't need to upload your code. You can just include the video js cdn hosted files inside a simple HTML document, then load your video files as its written inside the documentation. You can display videos hosted on your web server or from external source. Include these: https://vjs.zencdn.net/7.19.2/video.min.js https://vjs.zencdn.net/7.19.2/video-js.css

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda