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
Cómo Guest reproduce un video oculto de YouTube en mi sitio web

Tengo un sitio web con visitas reales y quizás quiero generar un bot de visitas para youtube.

¿Cómo hago para que la persona ingrese al sitio y reproduzca un video de YouTube (oculto) simplemente haciendo clic en cualquier parte de mi sitio?

No puedo usar el código a continuación, por ejemplo, porque YouTube no cuenta como vista si uso la reproducción automática.

<iframe width="420" height="345" src="http://www.youtube.com/embed/oHg5SJYRHA0?autoplay=1" frameborder="0" allowfullscreen></iframe>

Soy un principiante, probé el siguiente código, pero no funcionó.

 <html> <head> <title>Youtube br</title> </head> <style> #botYoutube { opacity: 0; position: absolute; right: 0; top: 0; } </style> <body onclick="play()"> <div id="botYoutube"></div> <script async src="https://www.youtube.com/iframe_api"></script> <script> var player; function play(){ player.playVideo(); } function onYouTubeIframeAPIReady() { player = new YT.Player('botYoutube', { videoId: 'x5MhydijWmc', // YouTube Video ID width: 10, // Player width (in px) height: 10, // Player height (in px) playerVars: { autoplay: 0, // Auto-play the video on load controls: 1, // Show pause/play buttons in player showinfo: 0, // Hide the video title modestbranding: 1, // Hide the Youtube Logo loop: 1, // Run the video in a loop fs: 0, // Hide the full screen button cc_load_policy: 0, // Hide closed captions iv_load_policy: 3, // Hide the Video Annotations autohide: 0 // Hide video controls when playing }, events: { onReady: function(e) { e.target.mute(); } } }); } </script> </body> </html>

¡Utilicé el traductor de Google para hacer esta pregunta!

Gracias

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

0

esto no está permitido en Youtube, pero puede crear un div con un fondo blanco y 420px × 375px , y un z-index alto y colocarlo encima del reproductor
no olvides la reproducción automática:

 autoplay: 0, // Auto-play the video on load
about 4 years ago · Juan Pablo Isaza Report

0

Lo que está tratando de hacer va en contra de los términos de servicio de Youtube y es probable que no funcione de todos modos. Youtube tiene protecciones contra este tipo de comportamiento.

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!