Window Media Player Gadget Issue

Hi, when I use Windows Media Player gadget, I wonder how it trasfer sound data bewteen gadget and sideshow driver? And how it control the time ellaspe and the status like(stop, pause,playing) and show it? Is it in the form of the same content id?

I will very appreciate for your answer.Thanks.

[308 byte] By [enderqs] at [2008-2-6]
# 1

Hi,

Use the i-mate SideShow Debugger that I wrote to show you how the Windows Media Player gadget works.

http://www.clubimate.com/t-WINGADRV.aspx

You will be able to see the raw content that is passed to the device and also the events that are passed to and from the gadget to the device.

-james

tenorwoody85 at 2007-9-13 > top of Msdn Tech,Software Development for Windows Vista,Windows SideShow Development...
# 2

Hi,

The Windows Media Player gadget does not actually transfer the music to the device; it simply controls playback of the music using the PC's audio hardware. All of the music playback is happening on Windows Vista, and being output using the standard audio output mechanisms for that PC.

To show the elapsed time and playback state, we do refresh the same content ID every second with the updated information when playing a track.

Dan

DanPolivy-MSFT at 2007-9-13 > top of Msdn Tech,Software Development for Windows Vista,Windows SideShow Development...
# 3

Hi, Dan

Thanks for your answer. And I have another question, is that the Windows Media Player gadget contorl the playback of the music through posting application events? If so, and how can I know the exact event ID?

Ender

enderqs at 2007-9-13 > top of Msdn Tech,Software Development for Windows Vista,Windows SideShow Development...
# 4

Ender,

Yes, the gadget uses Application Events to control playback. The events are the standard SCF defined Application Events, listed here: http://msdn2.microsoft.com/en-us/library/ms744205.aspx. Different events are used in different scenarios; for example, selecting items off of a menu causes the Menu Action event to fire, selecting off the context menu fires a Context Menu Action, while any other navigation causes a Navigation Event.

Dan

DanPolivy-MSFT at 2007-9-13 > top of Msdn Tech,Software Development for Windows Vista,Windows SideShow Development...

Software Development for Windows Vista

Site Classified