Поделиться через


ActiveBasicDevice class

Implements the IActiveBasicDevice interface that represents an active Digital Living Network Alliance (DLNA) device.

ActiveBasicDevice has these types of members:

  • Methods
  • Properties

Methods

The ActiveBasicDevice class has these methods.

Method Description
GetCachedBitrateMeasurement

Gets the cached bitrate.

GetCachedExtraSinkProtocolInfo

Gets additional cached sink protocol info for the device.

GetCachedSinkProtocolInfo

Gets the cached sink protocol info for the device.

GetEffectiveBandwidth

Gets the current effective bandwidth for the device.

SetCachedBitrateMeasurement

Sets the cached bitrate.

SetCachedSinkProtocolInfo

Gets the cached sink protocol info for the device.

 

Properties

The ActiveBasicDevice class has these properties.

Property Access type Description

IsAudioSupported

Read-only

Gets a value that indicates if the device supports audio.

IsImageSupported

Read-only

Gets a value that indicates if the device supports images.

IsMuteSupported

Read-only

Gets a value that indicates if the device supports muting the audio.

IsSearchSupported

Read-only

Gets a value that indicates if the device supports search.

IsSetNextSourceSupported

Read-only

Gets a value that indicates if setting the next source is supported.

IsVideoSupported

Read-only

Gets a value that indicates if the device supports video.

LogicalNetworkInterface

Read-only

Gets the id of the logical network interface.

MaxVolume

Read-only

Gets the maximum volume supported by the device.

PhysicalNetworkInterface

Read-only

Gets the id of the physical network interface.

 

Remarks

An IActiveBasicDevice is associated with a UPnP device. To retrieve a pointer to the underlying IUPnPDevice, IServiceProvider->QueryService can be used with GUID_NativeDeviceService to get native interfaces for the device.

For example, you can retrieve a IUPnPDevice pointer as follows:

pActiveBasicDevice->QueryService( GUID_NativeDeviceService, IID_IUPnPDevice, (void **)&spUPnPDevice );

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

IDL

PlayToDevice.idl

DLL

Playtodevice.dll