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

130
Views
¿Cómo habilitar el audio por defecto en videos incrustados con javascipt?

¿Es posible activar el audio en mi sitio web para cualquier video incrustado usando un complemento de javascript/jquery?

Tengo un sitio web que reproduce videos de Vimeo. Muchos de estos videos tienen su tráiler reproduciéndose en segundo plano y queremos reproducir el sonido del tráiler cuando se carga la página.

Quería algo como pedirles a los visitantes su aprobación para reproducir sonido en esos tráileres incrustados cuando lleguen al sitio. Algo así como establecer una cookie con la aprobación:

 <p class="audio-notice"> This site works better with audio enabled by default <button onClick="enable_video_sound()">Enable sound on video tailers</button> </p> <script> var play_sound = <?php echo isset( $_SESSION['enable_video_sound'] ) && ( $_SESSION['enable_video_sound'] == 0 ) ? 'true' : 'false'; ?>; function enable_video_sound(){ if( play_sound == false ){ // Set the SESSION variable play_sound = true; } } $(document).ready(function(){ // When a video is plays // Do something to set the volume of the playing clip at 100% // }); </script>
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!