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

322
Views
How to use a video file in public folder in Next JS?

I have an mp4 video file in my public folder and I'm trying to use it in a component. But it is not working and throw an error saying the video file is not found. 404. Am I doing it wrong?

GET http://localhost:3000/video.mp4 404 (Not Found)

My code:

const HomeSlider = () => {
  return (
    <div className='h-screen flex'>
      <video
        autoPlay
        loop
        muted
        className='absolute w-auto min-w-full min-h-full max-w-none'
      >
        <source src='/video.mp4' type='video/mp4' />
        Your browser does not support the video tag.
      </video>
    </div>
  );
};

export default HomeSlider;
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!