user2783263
user2783263

Reputation:

C++ - Is Windows Media Player Automation without ActiveX or MFC possible at all?

I have been trying to achieve Media Player Automation. Have almost tried every possible way I was aware of, but without any success. Few of the tries are listed below.

So all I am asking for is -- What I am trying, IS IT POSSIBLE AT ALL?

Raw-COM code to control media player? Any pointers, examples, code snippets are more than welcome. I have a wrong feeling that I have surfed entire cyber-world regarding this issue. Please prove me wrong.

PS: I do not want to do ActiveX or MFC coding.

Upvotes: 0

Views: 952

Answers (1)

Simon Mourier
Simon Mourier

Reputation: 138960

This problem has nothing to do with the fact your application is a Console application. The message pump is out of the subject here. You can try the same with a Windows app and it will behave the same.

It's because in this case, the player is not hosted as a control (as an OLE control, in a Window) so it's just not supported. If you host it in a Windows app or in Internet Explorer, you will see it works fine.

In this configuration, if you want to control the volume, you should use the volume audio APIs (and specifically ISimpleAudioVolume)

Upvotes: 1

Related Questions