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

106
Views
how to play and puase or autoplay the youtube video when video in view on the web page

I have rendered some youtube videos on the web so I want that a video in view that video will autoplay, and the user scroll up for another and the previous video should be stopped, and the new video autoplay. it should be like a tik tok video or Facebook video.

this is the HTML for the youtube video

 <div class="videohs">
                    <iframe id='player'src="https://www.youtube-nocookie.com/embed/GA7Fhq4_D2E?controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                </div>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you should add autoplay inside the src like this :

<!DOCTYPE html>
<html>
  <body>
    <iframe
      width="420"
      height="345"
      src="https://www.youtube-nocookie.com/embed/GA7Fhq4_D2E?autoplay=1&controls=0">
    </iframe>
  </body>
</html>
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!