Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
Error de Video.js cuando se salta un video. La barra de progreso se detiene antes del final

Tengo un error extraño con Video.Js Cuando estoy saltando un video con mis controles de salto, obtengo un error tan extraño:

ingrese la descripción de la imagen aquí

Mi salto hacia adelante se ve así: playerRef.current?.currentTime(playerRef.current?.currentTime() + 10);

El resto de mi código para player init se basa en documentos de Video.js

 const videoRef = useRef<HTMLVideoElement | null>(null); const playerRef = useRef<VideoJsPlayer | null>(null); const [pause, setPause] = useState(playerRef.current?.paused() ?? true); useEffect(() => { // make sure Video.js player is only initialized once if (!playerRef.current) { const videoElement = videoRef.current; if (!videoElement) return; const player = (playerRef.current = videojs(videoElement, options, () => { /* video.js pause play control */ player.on('pause', function () { setPause(true); playerPause && playerPause(true); }); player.on('play', function () { setPause(false); playerPause && playerPause(false); playerLive && player.liveTracker.seekToLiveEdge(); }); player.on('ended', function () { setPause(true); playerPause && playerPause(true); }); })); } else { } }, [options]); // Dispose the Video.js player when the functional component unmounts useEffect(() => { return () => { if (playerRef.current) { playerRef.current.dispose(); playerRef.current = null; } }; }, []);

Estaba tratando de verificar cuánto queda y si es inferior a 10 segundos, omita solo el tiempo restante, pero aún así esto no ayudó.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!