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

Hi,

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">
</OBJECT>

<form id="form1">
    <div>
        <input id="audioPath" type="file" /><br />
        <br />
        <input id="PLAY" type="button" value="PLAY"
        onClick = "
        Player.URL = 'file///E:/test/klst02.mp3';
        Player.controls.play();
        "/>
       
        <input id="STOP" type="button" value="STOP"
        onClick = "Player.controls.Stop()
        "/>
       </div>
  </form>
jaxrpcAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.