

For detailed information about how to specify an exclusive online store, see Exclusive Online Stores. In that case, the service selector in Windows Media Player is disabled and only the specified online store is available to the user. With Windows Media Player 11, an application that embeds the Player control remotely can specify an exclusive online store. If a remote connection is successfully established, the get_isRemote method of the IWMPPlayer4 interface returns true. In GetServiceType, you indicate the embedding mode of the control by returning a value of either "Remote" or "Local". In GetApplicationName, you return the name of your program, which Windows Media Player adds to the Switch to Other Program list on the View menu. IWMPRemoteMediaServices has several methods, but only two of them are directly relevant to remoting. Windows Media Player calls this method to retrieve a pointer to an IWMPRemoteMediaServices interface. IServiceProvider is a standard Component Object Model (COM) interface with a single method called QueryService. To enable remote embedding of the Windows Media Player control, your program must implement the IServiceProvider and IWMPRemoteMediaServices interfaces. When you remote the control, it shares the same playback engine as the full mode of the Player and your users can switch back and forth between embedded mode (the "docked" state) and full mode (the "undocked" state) while digital media playback continues uninterrupted. This is called "remoting" the Windows Media Player control, and it lets you provide all the features of the full mode Player without implementing them yourself. When you embed the Windows Media Player control in a C++ program, you can use it as a remote extension of the full mode of the Player.
