设备管理
更新时间:2025-08-20 15:22:48
设备管理,包括:设备列表等功能。
接口与类型定义详见sdk中dist目录下index.d.ts文件
/**
* 设备列表
* @param deviceListReq - 设备列表请求参数
* @returns
* @public
*/
declare function getDeviceList(deviceListReq: IDeviceListReq): Promise<IDeviceListResp>;
export declare namespace RTCXDeviceMgr {
export {
getDeviceList
}
}
设备列表
import {
RTCXDeviceMgr,
RTCXDeviceMgrTypes,
} from '@rtcx/websdk'
const deviceList = ref<RTCXDeviceMgrTypes.PlayDeviceInfo[]>([])
const params: RTCXDeviceMgrTypes.IDeviceListReq = {
pageNo: 1,
pageSize: 100,
}
return RTCXDeviceMgr.getDeviceList(params).then((resp) => {
deviceList.value = resp.data
})
.catch(console.error)