We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Playing Mp3 from Local Machine on embedded Windows Media Player in a web page

jaxrpc asked
Medium Priority
Last Modified: 2010-04-09

I have some codes here for playing a mp3 file from a local machine using embedded wmp but it can't seems to work...i tried finding out what's wrong but can't find any answers to it. The below codes are the ones i came up with..but they don't work...hoping experts can point out to me what went wrong and hopefully we can solve it or figure another way out. Thanks

And just to add the objective of this project is to let the user play a mp3 from their local drive using the embedded wmp.

 <!-- This code embeds the Player object in invisible mode. -->
<OBJECT id = "Player"
    CLASSID = "CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" height = 0
      width = 0>
        <PARAM Name = "uiMode" Value = "invisible">

<form id="form1">
        <input id="audioPath" type="file" /><br />
        <br />
        <input id="PLAY" type="button" value="PLAY"
        onClick = "
        Player.URL = 'file///E:/test/klst02.mp3';
        <input id="STOP" type="button" value="STOP"
        onClick = "Player.controls.Stop()
Watch Question

Player.URL = 'file///E:/test/klst02.mp3';  miss a colon file:///

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.