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

142
Views
How i can play audio in html?

<audio controls="controls" preload="auto"> 
 <source src="src/audio/blog_audio/music_file.ogg"  type="audio/ogg" /> 
 Your browser does not support the audio element. 
 <source src="src/audio/blog_audio/music_file.mp3"  type="audio/mp3" /> 
 Your browser does not support the audio element. 
 <source src="src/audio/blog_audio/music_file.aac"  type="audio/aac" /> 
 Your browser does not support the audio element. 
</audio>

I searched a lot here for a solution to the problem of playing the audio in the html5 file not working, and I did not find a solution to my problem, so I want to repeat the question in another form: the audio file works on the device or local host, but after uploading to the server it does not work. I think the code is written correctly and I don't know how to solve it I modified the mp3 audio file type to type="audio/mpeg"

This is the console error

https://imgur.com/a/GUS48j2

Please help to solve the problem

Thank you all

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

0

This is not from your code. The problem appear because you don't set the correct permissions for the file, this is why you get a 403 error and you can't play audio files on your page.

(I know my answer is a little bit blur, hope someone else could help you better ...)

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!