Close windows media player in a web page after its played?

Discussion in 'ASP .Net' started by Mark C, Jan 8, 2007.

  1. Mark C

    Mark C Guest

    How do you close windows media player in a web page after its played.

    I have added a windows media player to my web page as:


    <object id="Player"
    classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    ..
    ..
    ..

    After its played I would like it to automatically close. I have an
    example running on www.quiznetonline.com

    Thanks in advance
    Mark
     
    Mark C, Jan 8, 2007
    #1
    1. Advertising

  2. Mark C

    mank1327 Guest

    Not exactly the same thing, but see if this helps get you where you're
    going:

    "The following example code, part of a Form1 class, shows how to create a
    Player object and play a file. When playback ends, or if the file cannot be
    played, the form is closed."

    http://msdn2.microsoft.com/en-us/library/aa386639.aspx
     
    mank1327, Jan 8, 2007
    #2
    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,355
    Steve C. Orr [MVP, MCSD]
    Apr 12, 2005
  2. Replies:
    2
    Views:
    7,914
  3. ary
    Replies:
    1
    Views:
    1,101
    =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
    Nov 28, 2006
  4. Mark C
    Replies:
    1
    Views:
    126
    Evertjan.
    Jan 8, 2007
  5. Mark C
    Replies:
    0
    Views:
    99
    Mark C
    Jan 8, 2007
Loading...

Share This Page