locked
Programmatic control for Windows Media Player Mobile RRS feed

  • Question

  • Is it possible to control windows media player programmatically?  I need to write an application that would control the WMP.  For example, my application needs to be able to send commands like - start, pause, stop, FF, RW etc.  Does WMP provide such hooks to do so?

    Thanks.

    • Moved by Tao Liang Monday, May 18, 2009 5:41 AM mobile (From:Windows Presentation Foundation (WPF))
    Thursday, May 14, 2009 9:22 PM

Answers

  • Hi EKEngineer,

    We can send message to control Media player via SendMessage method.  For more information:
    http://www.codeproject.com/KB/cs/wmp_pinvoke.aspx


    If it is on WM platform, it can only stop Media player, can't do other control, like pause, etc.



    Best regards,
    Guang-Ming Bian - MSFT
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, May 19, 2009 3:59 AM

All replies

  • Is it possible to control windows media player programmatically?  I need to write an application that would control the WMP.  For example, my application needs to be able to send commands like - start, pause, stop, FF, RW etc.  Does WMP provide such hooks to do so?

    Thanks.


    Which platform do you use?
    This is WPF forum.
    Friday, May 15, 2009 1:37 AM
  • Hi EKEngineer,

    We can send message to control Media player via SendMessage method.  For more information:
    http://www.codeproject.com/KB/cs/wmp_pinvoke.aspx


    If it is on WM platform, it can only stop Media player, can't do other control, like pause, etc.



    Best regards,
    Guang-Ming Bian - MSFT
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, May 19, 2009 3:59 AM
  • Thank you!

    Wednesday, October 28, 2009 7:09 PM