How to Embed MP3 Files With Windows Media Player

Embedding MP3 files with a Windows Media Player is one of the most common types of embedding found on the Web. Corporations with websites will often embed MP3 files onto their homepage or other web pages. These files may include audio that instructs, teaches or entertains. Similarly, those who operate their own blog are likely to want to embed an MP3 file. They may want to do so to allow guests to the blog to listen to some of the blog administrator's favorite songs.

Instructions

    • 1

      Log on to the back end of your Web page or your blog by entering in the administrator password and user name you have set up with the blog or Web host.

    • 2

      Navigate the back end of the website or blog to find the page on which you want to embed the MP3 file with the Windows Media Player. This often is the homepage of the blog or website.

    • 3

      Locate the section of the page in which you want the Windows Media Player to be embedded. Begin to embed the MP3 file and media player by entering the first section of the HTML code. The first section should be:

      <object id="MediaPlayer" height=46 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">

    • 4

      Follow the first section of code with the HTML by entering the parameters of the code. Enter the following:

      <param name="filename" value="http://yourdomain.com/youraudio.mp3">
      <param name="Showcontrols" value="True">
      <param name="autoStart" value="True">

      Substitute "http://yourdomain.com/youraudio.mp3" in the code with the file path to the actual MP3 file that you want to listen to in the embedded Windows Media Player.

    • 5

      Finish the HTML code by inserting the following:

      <embed type="application/x-mplayer2" src="http://yourdomain.com/youraudio.mp3" name="MediaPlayer"></embed>
      </object>

      Again, change "http://yourdomain.com/youraudio.mp3" to the actual file path of the MP3 file.

    • 6

      Check to make sure the complete code is entered correctly. The complete code should look like this:

      <object id="MediaPlayer" height=46 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">

      <param name="filename" value="http://yourdomain.com/youraudio.mp3">
      <param name="Showcontrols" value="True">
      <param name="autoStart" value="True">

      <embed type="application/x-mplayer2" src=" http://yourdomain.com/youraudio.mp3" name="MediaPlayer"></embed>

      </object>

    • 7

      Use the publishing tools of the blog or the webpage to publish the page. The Windows Media Player is now embedded and will play the MP3 file.

Tips & Warnings

  • To keep the player from starting automatically, find the part of the code that reads: <param name="autoStart" value="True"> and change "True" to "False."

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured