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

327
Vistas
How can I remove the more video popup from my video (Videojs)

So I'm using videojs to play videos on my webpage, the code that I'm using is provided below. It works well but I have two issues

1: whenever I pause the video there's a popup of More videos as you can see in the linked image. How can I remove that box?

2: I want to capture the time when a user pauses the video and then start the video from the same spot whenever the user returns to the website after logging out. The progress bar should show the time where the user left. Do I have to save the value in my database somewhere and if so then how can I make the progress bar show that value after ther user is logged in?

My Code:

{% load static %}

<!DOCTYPE html>
<html>
<head>
</head>
<body>
  <video
    id="vid1"
    class="video-js vjs-default-skin"
    controls
    autoplay
    width="240" height="264"
    data-setup='{"textTrackSettings": false, "techOrder": ["youtube", "html5"], "sources": [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v=W4i2FRZ8gXc"}] }'
  >
  </video>
  
  <script src="https://vjs.zencdn.net/7.17.0/video.min.js"></script>
  <script src="{% static '/js/Youtube.js' %}"></script>
  <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>

  <script type="text/javascript">
    var myPlayer = videojs('vid1');

    if (typeof myPlayer.readyState() === 'undefined' || myPlayer.readyState() < 1) {
        // wait for loadedmetdata event
        myPlayer.one("loadedmetadata", onLoadedMetadata);
    }
    else {
        // metadata already loaded
        onLoadedMetadata();
    }
    
function onLoadedMetadata() {
    alert(myPlayer.duration());
    $('#duration').html("Duration: " + myPlayer.duration());
}

enter image description here

about 4 years ago · Juan Pablo Isaza
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