Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > WINDOWS MEDIA PLAYER OBJECT

Reply
Thread Tools

WINDOWS MEDIA PLAYER OBJECT

 
 
Gabriele Murari
Guest
Posts: n/a
 
      06-26-2007
Hi all,

i've build a web page with a windows media player embedded object. In
few words there will be an audio player on my web site and users can
use it to listen their OWN music. The goal is collect informations
about the music users are playing. (For example song name,
artist....).

i've installed windows media player SDK and i create an aspx page with
the following code:

<object id="player" name="player"
classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6">
<param name="autostart" value="false" />
<param name="enabled" value="true" />
<param name="uimode" value="full" />
<param name="windowlessVideo" value="true" />
</object>

<input id="fileSource" type="file" />
<input type="button" name="cmdPlay" id="cmdPlay" value="Play"
onclick="javascriptlay();" />
<input type="button" name="cmdStop" id="cmdStop" value="Stop"
onclick="javascript:stop();" />

</div>
</form>
<script type="text/jscript" language="jscript">
<!--
function play()
{
if (document.getElementById("fileSource").value != "")
{
document.getElementById("Player").URL =
document.getElementById("fileSource").value;
document.getElementById("Player").controls.play();
}
}

function stop()
{
document.getElementById("Player").controls.stop();
}
-->
</script>






quite simple. This works fine, but now i would like to know how
collect the information about the song. Retrieving the file name
should not be so hard, but if the user is playing an mp3 file, can I
collect it's informations such artist, play rate, song length.....


Thans all for helping me.

Best regards

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 7, Media Player - Settings for Media Serving NOT being savedfor Home Group Tim Wells Windows 64bit 0 10-27-2009 01:26 PM
mp3 player through Windows Media Player Kirsty Computer Support 4 08-13-2006 04:46 PM
pass js variable to <object> parameter for Windows Media Player fuzzylogic Javascript 0 06-23-2006 07:09 PM
Windows Media Player - Download Media Info From Internet is Greyed Out Alan NZ Computing 3 02-27-2006 10:38 PM
mp3 player windows media player Bigfred Computer Support 1 10-28-2003 09:46 PM



Advertisments