Specifications

Windows Embedded Automotive 7 Deep Dive: Phone Core and Media Core 62
Building a Media Application
Media applications use Media Core to abstract and manage device-specific interactions, such as
indexing and playing. Automotive 7 includes a sample media player that OEMs can use as a
foundation for creating a media application.
Sysgen Variables
Before you create an application, make sure the following Sysgen variables are set to include
Media Core in your OS image:
SYSGEN_AUTOMEDIA_GROUP1
SYSGEN_AUTOMEDIA_DSHOW_AUDIO_CODECS
Browsing the Content
You can determine whether the user experience will be driven by buttons on the display or by
voice, depending on your design requirements. Note that Microsoft recommends that OEMs use
the Browse APIs because the Index APIs will be deprecated in a future release.
The following steps provide an example of how a media application is structured to allow media
browsing.
1. Initialize the media application with the function MediaInitializePlayer.
2. Wait for the WM_STORAGE_INSERTED message to be passed once a media device is
attached.
Once this message is received by the media application, the customer can then start the
Browse process.
3. Call MediaBrowseOpen to get a session handle, and then use that handle to select and
retrieve items.
4. Call the following functions to browse your media application:
o MediaBrowseSelect: Changes the directory.
o MediaBrowseGetItems: Retrieves items in the selected directory.
o MediaBrowseNowPlayingPlayEx: Builds the “Now Playing List” and starts
playing the media (either a folder or a file) the user has selected.
5. Call MediaBrowseClose to close the browse session.
Note: These functions provide a starting point for developing a media player application. The
Browse APIs provide additional functions to meet your specific application requirements.