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

124
Views
Cargue el video en el búfer, luego cambie el atributo src
<video id=video controls mute></video> <script> let source = new MediaSource, buffer = MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'); (xhr = new XMLHttpRequest).open('get', 'frag_bunny.mp4'); xhr.responseType = 'arraybuffer'; xhr.onload = _ => { buffer.onupdateend = _ => { source.endOfStream(); video.src = URL.createObjectURL(source); video.muted = true; video.play(); }; buffer.appendBuffer(xhr.response); } xhr.send(); </script>

El código no funciona. En serio necesito tu ayuda

Estoy buscando una solución en la que sea posible precargar un archivo de video en el búfer. Al mismo tiempo, cambie el atributo src del video cuando el video esté en el búfer. Es decir, cargue un video y luego inserte o cambie el atributo src del video actual en el documento. ¿Es posible implementar tal cosa?

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!