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

236
Views
Video crashing while in Chrome (launching and changing source via jQuery)

I have a page with multiple pop up video. I use the same video element for each of them and only change the src attribute after the click event.

BUT, I have a problem (only in Chrome) sometimes the popup shows up and the video doesn't play, and when I copy/paste the URL link from the video element in an other tab, the link loads endlessly and all the pages do the same. I need to restart Chrome to make it work.

There's no JS error when it happens. The sizes of the videos is under 5mb.

Here's my click handler:

$(".playerContainer video").attr("src", videoUrl); 
$(".playerContainer video")[0].play(); 

My html of the video :

<video poster="" id="video-popup" preload playsinline>
   <source src="" type="video/mp4">   
</video>

My Chrome version :

Version 98.0.4758.80

Thank you for your time :)

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!