Playing Mp3 from Local Machine on embedded Windows Media Player in a web page
Posted on 2006-03-23
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">
<input id="audioPath" type="file" /><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()