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. Advertisements

  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. Advertisements

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. =?Utf-8?B?am9obmcxNDky?=

    Windows media player and asp.net

    =?Utf-8?B?am9obmcxNDky?=, Mar 1, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    538
    Alvin Bruney [MVP]
    Mar 4, 2004
  2. =?Utf-8?B?QVNQdXNlcg==?=

    Windows Media Player and ASP.NET (with VB code behind)

    =?Utf-8?B?QVNQdXNlcg==?=, Apr 14, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    624
    =?Utf-8?B?QVNQdXNlcg==?=
    Apr 14, 2004
  3. =?Utf-8?B?Sm9uIFNjaHdhcnR6?=

    Using Windows Media Player 10 on an ASPX page

    =?Utf-8?B?Sm9uIFNjaHdhcnR6?=, Jan 31, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    544
    =?Utf-8?B?Sm9uIFNjaHdhcnR6?=
    Jan 31, 2005
  4. cyshao
    Replies:
    1
    Views:
    3,585
    Steve C. Orr [MVP, MCSD]
    Apr 12, 2005
  5. Replies:
    2
    Views:
    8,119
  6. ary
    Replies:
    1
    Views:
    1,248
    =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
    Nov 28, 2006
  7. Mark C
    Replies:
    1
    Views:
    247
    Evertjan.
    Jan 8, 2007
  8. Mark C
    Replies:
    0
    Views:
    199
    Mark C
    Jan 8, 2007
Loading...