?
Solved

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

Posted on 2006-03-23
1
Medium Priority
?
193 Views
Last Modified: 2010-04-09
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>
0
Comment
Question by:jaxrpc
1 Comment
 
LVL 7

Accepted Solution

by:
bubbledragon earned 1500 total points
ID: 16277494
Player.URL = 'file///E:/test/klst02.mp3';  miss a colon file:///
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

749 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