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

235
Views
Reproducir video por disparador ('reproducir') para 1
 $('a.thumbnail').click(function(){ $(this).('.cu_vd').trigger('play'); }); 

 $('a.thumbnail').click(function(){ $(this).('.cu_vd').trigger('play'); });

Estoy tratando de reproducir el video por disparador, pero los cuadros de video son múltiples con la misma clase. Así que estoy tratando de usar 'esto' para que no se dispare a todos, pero no funciona. Esta es la página HTML, donde estoy tratando de reproducir el video.

https://dev-visualshowcase.cvent.com/bkeventvideos.html , haga clic en IOV 1 (primer cuadro), se activa la ventana emergente y quiero reproducir este video con la función JS, en lugar de la reproducción automática, porque la reproducción automática no es compatible con IOS https://dev-visualshowcase.cvent.com/eventvideos.html - aquí puede comprobar el problema

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede usar el atributo de datos para orientar un video específico

 <button class="thumbnail" data-target="video_1">Play the video</button> <video id="video_1" playsinline="" preload="auto" muted="" controls="" loop=""> <source src="https://dev-visualshowcase.cvent.com/VS/video/vd_intro/01.mp4" type="video/mp4"> </video>

Cada vez que haces clic en el botón .thumbnail , usas el objetivo de datos para elegir tu video

 $('.thumbnail').click(function(){ let target = $(this).attr('data-target') $('#' + target).trigger('play'); });
about 4 years ago · Juan Pablo Isaza Report
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!