WINDOWS MEDIA PLAYER OBJECT

G

Gabriele Murari

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="javascript:play();" />
<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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top