Jump to content

Recommended Posts

Posted

Hello All,

 

What code should I use to enable a visitor to a web site to be able to listen to an MP3 file? I would like the user to be able to click on a button to play the file then say pause etc.

 

Thank you as always,

 

Best wishes

Graeme

Posted

can you tell in which technology you developed your website?

 

Using an object tag, we can create our own little player with a few lines of code. Paste the code below into your page and insert the link to your MP3. Then you can customize options like height, width, background color, loop, and autoplay.

 

<object width="300" height="42">

<param name="src" value="LINKHERE">

<param name="autoplay" value="false">

<param name="controller" value="true">

<param name="bgcolor" value="#FFFFFF">

<embed src="LINKHERE" autostart="false" loop="false" width="300" height="42"

controller="true" bgcolor="#FFFFFF"></embed>

</object>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

Loading...
×
×
  • Create New...