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
lay();" />
<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
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
<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