WINDOWS MEDIA PLAYER OBJECT

Discussion in 'ASP .Net' started by Gabriele Murari, Jun 26, 2007.

  1. 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
    Gabriele Murari, Jun 26, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cyshao
    Replies:
    1
    Views:
    3,303
    Steve C. Orr [MVP, MCSD]
    Apr 12, 2005
  2. ary
    Replies:
    1
    Views:
    1,068
    =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
    Nov 28, 2006
  3. gbs

    Problem with media player object

    gbs, Nov 27, 2006, in forum: ASP .Net Mobile
    Replies:
    1
    Views:
    771
  4. fuzzylogic
    Replies:
    0
    Views:
    254
    fuzzylogic
    Jun 23, 2006
  5. fuzzylogic
    Replies:
    0
    Views:
    106
    fuzzylogic
    Jun 23, 2006
Loading...

Share This Page