Jump to content

Playing music


Recommended Posts

I tried to make the code to play music through Media Player 7 and newer. But I have no idea on to how to do that.This was my try...<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"><param showcontrols="true" autostart="true" audiostream="true" name="FileName" value="http://www.freewebs.com/lostwaterdownloads/Peaceful.mp3"></object>

Link to post
Share on other sites

The <param> element only has "name" and "value" attributes. <object> elements with classid and codebase attributes will only work in Internet Explorer.try the following code:

<!-- IMPORTANT: object must have a width and height defined, modify the "style" attribute to your liking --><!-- code for Internet Explorer --><object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" style="width: 200px; height: 50px;" type="audio/mpeg" data="http://www.freewebs.com/lostwaterdownloads/Peaceful.mp3"><param name="showcontrols" value="true"><param name="autostart" value="true"><param name="audiostream" value="true"><param name="FileName" value="http://www.freewebs.com/lostwaterdownloads/Peaceful.mp3">  <!-- code for other browsers -->  <object data="http://www.freewebs.com/lostwaterdownloads/Peaceful.mp3" type="audio/mpeg" style="width: 200px; height: 50px;">	<param name="showcontrols" value="true">	<param name="autostart" value="true">	<param name="audiostream" value="true">	<param name="FileName" value="http://www.freewebs.com/lostwaterdownloads/Peaceful.mp3">  </object>  <!-- end code for other browsers --></object>

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.

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