Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | List of all members
agora::rtc::IVideoDeviceManagerObserver Class Referenceabstract

`#include <NGIAgoraVideoDeviceManager.h>`

## Public Member Functions
virtual | ~IVideoDeviceManagerObserver ()
virtual void | onVideoDeviceStateChanged (const char *deviceId, int deviceType, int deviceState)=0

## Detailed Description

The IVideoDeviceManagerObserver class.

## Constructor & Destructor Documentation

## ◆ ~IVideoDeviceManagerObserver()

virtual agora::rtc::IVideoDeviceManagerObserver::~IVideoDeviceManagerObserver | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ onVideoDeviceStateChanged()

virtual void agora::rtc::IVideoDeviceManagerObserver::onVideoDeviceStateChanged | ( | const char * | deviceId,
|  | int | deviceType,
|  | int | deviceState )
| pure virtual

Occurs when the device state changes, for example, when a device is added or removed or default device change.

Note
  This method applies to Windows only now.

Parameters

  deviceId | Pointer to the device ID.
  deviceType | Device type: MEDIA_DEVICE_TYPE.
  deviceState | Device state: MEDIA_DEVICE_STATE_TYPE..