How MediaDisplay Works

The MediaDisplay sample application shows different content on the on-screen FPD depending on the current state of the Windows Media Center PC. To enable this, the software has the concept of layouts. A layout dictates the information to be displayed on the panel at a given time. The layout manager handles events raised by the SessionState objects. When an event is received, the layout manager uses session properties to query the state of Windows Media Center and determine the most appropriate layout. Each layout is a collection of regions, each region displaying a single piece of information.

For example, if the user is listening to music, the standard layout manager (you can plug in your own) will pick the music-play layout, as shown in the following illustration:

Sample music-play layout

This layout has regions for:

  • Album name
  • Artist name
  • Track number
  • Transport state (play, pause, stop)
  • Progress indicator

See Also