Agora Java API Reference for Android
Public Member Functions | List of all members
agora::streaming::IVideoDeviceCollection Class Referenceabstract

#include <IAgoraStreamingKit.h>

Public Member Functions

virtual int getCount ()=0
 
virtual int getDeviceInfo (int index, char deviceName[MAX_DEVICE_ID_LENGTH], char deviceId[MAX_DEVICE_ID_LENGTH])=0
 
virtual void release ()=0
 

Detailed Description

The IVideoDeviceCollection class.

Member Function Documentation

◆ getCount()

virtual int agora::streaming::IVideoDeviceCollection::getCount ( )
pure virtual

Gets the total number of the indexed video capture devices in the system.

Returns
The total number of the indexed video capture devices.

◆ getDeviceInfo()

virtual int agora::streaming::IVideoDeviceCollection::getDeviceInfo ( int  index,
char  deviceName[MAX_DEVICE_ID_LENGTH],
char  deviceId[MAX_DEVICE_ID_LENGTH] 
)
pure virtual

Gets the specified information of an indexed video capture device.

Parameters
indexAn input parameter that specifies the device. It is a specified index and must be smaller than the return value of getCount().
deviceNameAn output parameter that indicates the device name.
deviceIdAn output parameter that indicates the device ID.
Returns
  • 0: Success.
  • < 0: Failure.

◆ release()

virtual void agora::streaming::IVideoDeviceCollection::release ( )
pure virtual

Releases all IVideoDeviceCollection resources.