Last Updated on : 2024-06-17 08:46:24download
A list of devices can be obtained based on homes. An IP camera (IPC) can be determined by device type. Then, an IPC object can be created with the information provided by DeviceBean
.
Determines whether a device supports IPC capabilities. This API method cannot be used to determine a product category.
For certain device categories for multiple purposes, for example, smart video locks and video doorbells, they can support IPC capabilities besides basic features.
API description
boolean isIPCDevice(String devId);
Example
IThingIPCCore cameraInstance = ThingIPCSdk.getCameraInstance();
if (cameraInstance != null) {
cameraInstance.isIPCDevice(devId)
}
IPCs support three P2P channel implementation solutions. The IPC SDK initializes different IPC implementation objects based on the P2P type. You can call the following API method to get the specific P2P type.
API description
int getP2PType(String devId);
Example
IThingIPCCore cameraInstance = ThingIPCSdk.getCameraInstance();
if (cameraInstance != null) {
cameraInstance.getP2PType(devId)
}
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback