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

392
Views
TypeScript does not accept video autoplay, why?

Got this error:

  Property 'autoplay' does not exist on type 'DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>'. Did you mean 'autoPlay'?

  207 |               playsInline
  208 |               controls={props.isControlsVisible == true}
> 209 |               autoplay={props.isAutoPlay == true}
      |               ^

Strange, because here docs says it is a valid attribute.

https://www.w3schools.com/tags/att_video_autoplay.asp

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

0

Change autoplay to autoPlay. This is a JSX convention, where some DOM props do not match the spec.

Here is a GitHub issue that gives a detailed explanation on why it's Camelcase: https://github.com/facebook/react/issues/16762

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!