Re: Media Player - Hosting vs Console

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



From: "Yarej"

Howdy. I'm pretty new to Media Player SDK; so far so
good. I need to have a player integrated into an API that
is not externally visible, at the same time provides
functionality to play wma/wav/mp3. So, which approach
should be selected? Host or console based? It is
essential that the player is not visible. I tried to get

If you do not need the player GUI, than it would be much
better for you to use DirectShow directly (which is what WMP
uses inside).

http://msdn.microsoft.com/en-us/library/dd389098(VS.85).aspx

Does the "GetMessage" have to run in the same thread? as
in which m_spWMPControls->play() is invoked? This pretty
much hangs there.
I guess I need to read more about windows programming.
Any source of info recommended?

The docs do not explain at all that you need to dispatch
messages, let alone on which thread. I'd dispatch messages
on the thread that creates the player object and/or the
thread that invokes play().


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


.



Relevant Pages

  • Re: Media Player - Hosting vs Console
    ... essential that the player is not visible. ... The docs do not explain at all that you need to dispatch ... I'd dispatch messages ... thread that invokes play. ...
    (microsoft.public.windowsmedia.sdk)
  • Media Player - Hosting vs Console
    ... I'm pretty new to Media Player SDK; ... player integrated into an API that is not externally visible, ... time provides functionality to play wma/wav/mp3. ... MSG msg; ...
    (microsoft.public.windowsmedia.sdk)