Share via


Obtain the Media Device Manager

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Before a client manages local media devices, the client obtains the media device manager, an instance of the IUccMediaDeviceManager interface. This interface is implemented in the UccPlatform class and the media device manager is then obtainable from a properly initialized platform object.

As shown in the following example, obtaining the media device manager involves typecasting from an UccPlatform object to an IUccMediaDeviceManager instance.

UccPlatform platform = ...;
IUccMediaDeviceManager deviceMan = platform as IUccMediaDeviceManager;

As shown in the following example, if the client has not advised the platform object of an _IUccMediaDeviceManagerEvents implementation, it should do so on the newly obtained media device manager.

AdviseForEvent<_IUccMediaDeviceManagerEvents>(deviceMan, this);

The calling objects responsibility for handling such events is assumed.

See Also

Reference

UccPlatform

Concepts

Creating and Initializing a Platform Object