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

Posted on 2006-03-23
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()
Question by:jaxrpc
    1 Comment
    LVL 7

    Accepted Solution

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

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now