Jump to content
Sign in to follow this  

Audio not playing

Recommended Posts


I'm trying to play an mp3 audio file stored on my computer and it's not working.

My browser supports mp3,

I wrote this code:

<!DOCTYPE html>

<audio controls>
<source src="C:\Users\reut\Downloads\Nagham(1).mp3" type="audio/mpeg">



Share this post

Link to post
Share on other sites

You can't access your downloads folder with a local path. You'll need to change it to a relative path, or a relative-to-root path.


Surely there are better ways to play an mp3 than using HTML?

If you're trying to add this to a webpage, I would recommend placing it either in the same directory as the webpage, or a subdirectory underneath the webroot directory.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...