Compartilhar via


MediaServerDevice (Windows CE 5.0)

Send Feedback

This utility class is used by UPnP AV control points to retrieve IConnectionManager and IContentDirectory references.

class MediaServerDevice

Methods

The following table shows the methods for this class.

Method Description
MediaServerDevice Constructor Creates a MediaServerDevice instance using the specified generic UPnP device reference.
MediaServerDevice::GetConnectionManager Returns an IConnectionManager pointer that control point code uses to communicate over the network with MediaServer devices.
MediaServerDevice::GetContentDirectory Returns an IContentDirectory pointer that control point code uses to communicate over the network with MediaServer devices.

Remarks

The IConnectionManager and IContentDirectory implementations returned by MediaServerDevice::GetConnectionManager and MediaServerDevice::GetContentDirectory are proxies that communicate using UPnP with the MediaServer device. That is, when you call methods on this IConnectionManager or IContentDirectory instance, the proxy translates the calls to UPnP action invocations and returns the resulting data.

You can use the returned IConnectionManager to retrieve proxy IAVTransport and IRenderingControl references, using IConnectionManager::PrepareForConnection.

For example control point code that uses this class, see the AV control point sample, explained in more detail in UPnP AV Control Point Sample.

For more information about the MediaServer device, see the MediaServer DCP referenced in UPnP AV DCP Documentation.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Av_upnp.h.
Link Library: Av_upnp.lib.
C++ Namespace: av_upnp.

See Also

UPnP AV Control Point Utility Classes | IAVTransport | IConnectionManager | IConnectionManager::PrepareForConnection | IContentDirectory | IRenderingControl | MediaServerDevice::GetConnectionManager | MediaServerDevice::GetContentDirectory

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.