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

114
Views
Autoplay HTML5 video

I'm trying to set an HTML5 video element on iOS Safari to autoplay on page load.

I know that a video can only be triggered from a user event. Here's my scenario.

I have a list of videos on /videos.html for example. That list of videos has a play button that takes the user to /videos/my-video.html

I don't want to the user to have to click 'play' again while on this URL. In my mind, they've already triggered the user event from the previous page.

Do I have any options here?

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

0

Use "autoplay" attribute to play video on page load. Add this attribute dynamically to HTML video element on the click event of play button in /videos.html. You can also use "muted" attribute to play video on mute by default.

<video width="320" height="240" autoplay muted>
  <source src="movie.mp4" type="video/mp4">
</video>
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!