Re: Media Player - Hosting vs Console
- From: Yarej <Yarej@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Mar 2009 00:15:01 -0700
Hi. I tried using DShow; however compatibility issues came out;
when trying to run a given function on XP or Vista. Not all OS's have the
APIs needed (to play a stream of audio, for example or to play a CD). I will
work on it from ground up using Geraint's code at some point. OK, I spent the
weekend working with Microsoft Media Player + reading on basis of Win32
Programming.
I am still not clear on using the Media Player. (That's what I need for now,
DirectShow later). So, here's a structure of the program. Main loads
something called subsystems; network, player, GUI + others. Subsystems may
start a new thread or not. In case of Player, it is an interface that invokes
methods like Stop,Play, Pause (same thread as winmain). I used these methods
to invoke actual Windows Media Player methods (via WMPcontrol); however,
after each method was invoked (asynchronous), no action was performed and no
error was returned. The method "finally worked" after I placed GetMessage
following method invocation (behind Play). But, I dont want (and dont think
I need) to place GetMessage following Play, Pause etc. So where does it go?
When I place it into WinMain(), and invoke WMPControl ->play, the play doesnt
start. (all in one thread, I guess WMPcontrol->play invokes its own thread).
.
- References:
- Media Player - Hosting vs Console
- From: Yarej
- Re: Media Player - Hosting vs Console
- From: Alessandro Angeli
- Media Player - Hosting vs Console
- Prev by Date: WMP buffer size and playback start
- Next by Date: Re: Media Player - Hosting vs Console
- Previous by thread: Re: Media Player - Hosting vs Console
- Next by thread: Re: Media Player - Hosting vs Console
- Index(es):
Relevant Pages
|